From 00aa6d5ac3b78ef077c057d7033a99d4a762546b Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 22 Feb 2018 21:16:01 +0300 Subject: [PATCH] Allow monospace block to end on ellipsis. --- Telegram/SourceFiles/ui/text/text_entity.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/ui/text/text_entity.cpp b/Telegram/SourceFiles/ui/text/text_entity.cpp index 9b3ca1ea2..03a036dd1 100644 --- a/Telegram/SourceFiles/ui/text/text_entity.cpp +++ b/Telegram/SourceFiles/ui/text/text_entity.cpp @@ -31,8 +31,8 @@ QString ExpressionMailNameAtEnd() { } QString ExpressionSeparators(const QString &additional) { - // UTF8 quotes - const auto quotes = QString::fromUtf8("\xC2\xAB\xC2\xBB\xE2\x80\x9C\xE2\x80\x9D\xE2\x80\x98\xE2\x80\x99"); + // UTF8 quotes and ellipsis + const auto quotes = QString::fromUtf8("\xC2\xAB\xC2\xBB\xE2\x80\x9C\xE2\x80\x9D\xE2\x80\x98\xE2\x80\x99\xE2\x80\xA6"); return qsl("\\s\\.,:;<>|'\"\\[\\]\\{\\}\\~\\!\\?\\%\\^\\(\\)\\-\\+=\\x10") + quotes + additional; }