From 4564c0d39b12735ad1bcdf784a8afcfad2b6b8f5 Mon Sep 17 00:00:00 2001 From: Mithgol Date: Wed, 23 Sep 2020 15:51:46 +0300 Subject: [PATCH] =?UTF-8?q?do=C2=A0not=20treat=20non-breaking=20spaces=20(?= =?UTF-8?q?U+00A0,=20dec=C2=A0160)=20as=C2=A0normal=C2=A0spaces?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/text/text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/text/text.cpp b/ui/text/text.cpp index 9d1f8a12..23959a67 100644 --- a/ui/text/text.cpp +++ b/ui/text/text.cpp @@ -3408,7 +3408,7 @@ bool IsNewline(QChar ch) { } bool IsSpace(QChar ch, bool rich) { - return ch.isSpace() + return ( ch.isSpace() && ch != QChar(160) ) || (ch < 32 && !(rich && ch == TextCommand)) || (ch == QChar::ParagraphSeparator) || (ch == QChar::LineSeparator)