diff options
author | Hugo Lima <hugo.lima@openbossa.org> | 2009-11-19 20:04:32 -0200 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2009-11-19 20:04:32 -0200 |
commit | 5f1029fae1172331fe8e110ba0302b338f6712f6 (patch) | |
tree | 27130c3c1d61023737e861f15b6b2d4c21bf7347 /generator.cpp | |
parent | af0c620e6c74680db24e1bf1a400c48410cae418 (diff) |
Remove white spaces at end of each line when formating injected code.
Diffstat (limited to 'generator.cpp')
-rw-r--r-- | generator.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/generator.cpp b/generator.cpp index 636eb5b88..99a74d301 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()) |