summaryrefslogtreecommitdiffstats
path: root/generator.cpp
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2009-11-19 20:04:32 -0200
committerHugo Lima <hugo.lima@openbossa.org>2009-11-19 20:04:32 -0200
commit5f1029fae1172331fe8e110ba0302b338f6712f6 (patch)
tree27130c3c1d61023737e861f15b6b2d4c21bf7347 /generator.cpp
parentaf0c620e6c74680db24e1bf1a400c48410cae418 (diff)
downloadgeneratorrunner-5f1029fae1172331fe8e110ba0302b338f6712f6.tar.gz
generatorrunner-5f1029fae1172331fe8e110ba0302b338f6712f6.tar.xz
generatorrunner-5f1029fae1172331fe8e110ba0302b338f6712f6.zip
Remove white spaces at end of each line when formating injected code.
Diffstat (limited to 'generator.cpp')
-rw-r--r--generator.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/generator.cpp b/generator.cpp
index 636eb5b..99a74d3 100644
--- a/generator.cpp
+++ b/generator.cpp
@@ -356,6 +356,8 @@ QTextStream& formatCode(QTextStream &s, const QString& code, Indentor &indentor)
}
foreach(QString line, lst) {
+ while (line.end()->isSpace())
+ line.chop(1);
int limit = 0;
for(int i = 0; i < spacesToRemove; ++i) {
if (!line[i].isSpace())