forked from qt-creator/qt-creator
TemplateEngine: Do not append trailing newline
Change-Id: I99731186ae1e14c79728ebc6c74a5b842cf25069 Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user