diff options
-rw-r--r-- | util/unicode/main.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/util/unicode/main.cpp b/util/unicode/main.cpp index 5303c0d..5ae9c1f 100644 --- a/util/unicode/main.cpp +++ b/util/unicode/main.cpp @@ -1905,6 +1905,8 @@ QByteArray createScriptTableDeclaration() else declaration += ' '; } + if (declaration.endsWith(' ')) + declaration.chop(1); } declaration += "\n};\n\n} // namespace QUnicodeTables\n\n"; @@ -2668,14 +2670,14 @@ int main(int, char **) f.write("\n"); f.write(scriptEnumDeclaration); f.write("\n"); - f.write(lineBreakClass); - f.write("\n"); f.write(grapheme_break_string); f.write("\n"); f.write(word_break_string); f.write("\n"); f.write(sentence_break_string); f.write("\n"); + f.write(lineBreakClass); + f.write("\n"); f.write(methods); f.write("} // namespace QUnicodeTables\n\n" "QT_END_NAMESPACE\n\n" |