aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/utils/templateengine.cpp
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@theqtcompany.com>2015-10-14 12:55:09 +0200
committerTobias Hunger <tobias.hunger@theqtcompany.com>2015-10-14 11:59:24 +0000
commit8641277121632de574e1bc76a76d8727e9b7cd03 (patch)
tree2a9fbb1931689ca751e20cd36efdab2e3cdc1943 /src/libs/utils/templateengine.cpp
parentccd3bf0b19d16acce15dfd2b1eedc2b098b0ad44 (diff)
TemplateEngine: Do not append trailing newline
Change-Id: I99731186ae1e14c79728ebc6c74a5b842cf25069 Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
Diffstat (limited to 'src/libs/utils/templateengine.cpp')
-rw-r--r--src/libs/utils/templateengine.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libs/utils/templateengine.cpp b/src/libs/utils/templateengine.cpp
index 3c756689a5b..437c627ea4c 100644
--- a/src/libs/utils/templateengine.cpp
+++ b/src/libs/utils/templateengine.cpp
@@ -211,8 +211,9 @@ bool PreprocessContext::process(const QString &in, QString *out, QString *errorM
break;
case OtherSection: // Rest: Append according to current condition.
if (top.condition) {
+ if (l != 0)
+ out->append(newLine);
out->append(lines.at(l));
- out->append(newLine);
}
break;
} // switch section