diff options
author | renato araujo oliveira <renato@renato-note.(none)> | 2009-11-24 11:46:18 -0300 |
---|---|---|
committer | renato araujo oliveira <renato@renato-note.(none)> | 2009-11-24 11:46:18 -0300 |
commit | b2519fa1f17be24956772f5a5101a914cbbdb77d (patch) | |
tree | d14317a5420c9836afea23c3eb775fa6306526de /generator.cpp | |
parent | 9a434d34ee73e69db79fa1bba0c9443404653546 (diff) | |
parent | 302029e093c88fb46cea8d6131726b82731110f9 (diff) |
Merge commit 'mainline/master'
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()) |