[Improvement] Don't replace no-break and zero-width spaces
This commit is contained in:
parent
0b6fc6fe2f
commit
b9c50d754f
1 changed files with 4 additions and 1 deletions
|
|
@ -485,7 +485,10 @@ void Parser::parseCurrentChar() {
|
||||||
_emojiLookback = 0;
|
_emojiLookback = 0;
|
||||||
const auto inCustomEmoji = !_customEmojiData.isEmpty();
|
const auto inCustomEmoji = !_customEmojiData.isEmpty();
|
||||||
const auto isNewLine = !inCustomEmoji && _multiline && IsNewline(_ch);
|
const auto isNewLine = !inCustomEmoji && _multiline && IsNewline(_ch);
|
||||||
const auto replaceWithSpace = IsSpace(_ch) && (_ch != QChar::Nbsp);
|
const auto replaceWithSpace = IsSpace(_ch)
|
||||||
|
&& (_ch != QChar::Nbsp)
|
||||||
|
&& _ch != QChar(160)
|
||||||
|
&& _ch != QChar(8203);
|
||||||
const auto isDiacritic = IsDiacritic(_ch);
|
const auto isDiacritic = IsDiacritic(_ch);
|
||||||
const auto isTilde = !inCustomEmoji && _checkTilde && (_ch == '~');
|
const auto isTilde = !inCustomEmoji && _checkTilde && (_ch == '~');
|
||||||
const auto skip = [&] {
|
const auto skip = [&] {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue