Commit 86412771 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

TemplateEngine: Do not append trailing newline



Change-Id: I99731186ae1e14c79728ebc6c74a5b842cf25069
Reviewed-by: default avatarDavid Schulz <david.schulz@theqtcompany.com>
parent ccd3bf0b
...@@ -211,8 +211,9 @@ bool PreprocessContext::process(const QString &in, QString *out, QString *errorM ...@@ -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) {
if (l != 0)
out->append(newLine);
out->append(lines.at(l)); out->append(lines.at(l));
out->append(newLine);
} }
break; break;
} // switch section } // switch section
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment