TemplateEngine: Do not append trailing newline

Change-Id: I99731186ae1e14c79728ebc6c74a5b842cf25069
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
Tobias Hunger
2015-10-14 12:55:09 +02:00
parent ccd3bf0b19
commit 8641277121

View File

@@ -211,8 +211,9 @@ bool PreprocessContext::process(const QString &in, QString *out, QString *errorM
break; break;
case OtherSection: // Rest: Append according to current condition. case OtherSection: // Rest: Append according to current condition.
if (top.condition) { if (top.condition) {
out->append(lines.at(l)); if (l != 0)
out->append(newLine); out->append(newLine);
out->append(lines.at(l));
} }
break; break;
} // switch section } // switch section