diff options
author | Tobias Hunger <tobias.hunger@theqtcompany.com> | 2015-10-14 12:55:09 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@theqtcompany.com> | 2015-10-14 11:59:24 +0000 |
commit | 8641277121632de574e1bc76a76d8727e9b7cd03 (patch) | |
tree | 2a9fbb1931689ca751e20cd36efdab2e3cdc1943 /src | |
parent | ccd3bf0b19d16acce15dfd2b1eedc2b098b0ad44 (diff) | |
download | qt-creator-8641277121632de574e1bc76a76d8727e9b7cd03.tar.gz |
TemplateEngine: Do not append trailing newline
Change-Id: I99731186ae1e14c79728ebc6c74a5b842cf25069
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/libs/utils/templateengine.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libs/utils/templateengine.cpp b/src/libs/utils/templateengine.cpp index 3c756689a5..437c627ea4 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 |