diff options
-rw-r--r-- | src/linguist/shared/ts.cpp | 2 | ||||
-rw-r--r-- | tests/auto/linguist/lupdate/testdata/good/merge_whitespace/project.ts.result | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/linguist/shared/ts.cpp b/src/linguist/shared/ts.cpp index 5914319c9..153f9708b 100644 --- a/src/linguist/shared/ts.cpp +++ b/src/linguist/shared/ts.cpp @@ -464,7 +464,7 @@ static QString protect(const QString &str) result += QLatin1String("'"); break; default: - if ((c < 0x20 || (ch > 0x7f && ch.isSpace())) && c != '\r' && c != '\n' && c != '\t') + if ((c < 0x20 || (ch > 0x7f && ch.isSpace())) && c != '\n' && c != '\t') result += numericEntity(c); else // this also covers surrogates result += QChar(c); diff --git a/tests/auto/linguist/lupdate/testdata/good/merge_whitespace/project.ts.result b/tests/auto/linguist/lupdate/testdata/good/merge_whitespace/project.ts.result index 93bd54bb9..486abcec4 100644 --- a/tests/auto/linguist/lupdate/testdata/good/merge_whitespace/project.ts.result +++ b/tests/auto/linguist/lupdate/testdata/good/merge_whitespace/project.ts.result @@ -62,9 +62,9 @@ NEWLINE AT THE START</translation> </message> <message> <location filename="main.cpp" line="49"/> - <source>carriage return and line feed last + <source>carriage return and line feed last<byte value="xd"/> </source> - <translation type="unfinished">CARRIAGE RETURN AND LINE FEED LAST + <translation type="unfinished">CARRIAGE RETURN AND LINE FEED LAST<byte value="xd"/> </translation> </message> </context> |