summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLucie Gerard <lucie.gerard@qt.io>2019-04-01 10:11:32 +0200
committerLucie Gerard <lucie.gerard@qt.io>2019-04-02 09:49:33 +0000
commitebda25ecb40aa1a13920a534bf2c6449981b92fe (patch)
treec2d4c23cdb7e6037c9390abe78f91fdd6336115e /src
parent9364c3fcc8c98f70aceaac5b72823e290504cb2a (diff)
Convert \r into a numerical entity
Task-number: QTBUG-41562 Change-Id: If03df28095212f2ee9f74eeaf03c50a6f1203415 Reviewed-by: Kai Koehne <kai.koehne@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/linguist/shared/ts.cpp2
1 files changed, 1 insertions, 1 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("&apos;");
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);