Skip to content

Commit

Permalink
Allow unicode quotes as markdown entry separators. (#54)
Browse files Browse the repository at this point in the history
Fixes #13. (Based on upstream's commit telegramdesktop/tdesktop@2e421e8, )
  • Loading branch information
ForNeVeR authored and leha-bot committed Dec 24, 2017
1 parent 18cd75a commit 31ed521
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Telegram/SourceFiles/ui/text/text_entity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ QString ExpressionMailNameAtEnd() {
}

QString ExpressionSeparators(const QString &additional) {
return qsl("\\s\\.,:;<>|'\"\\[\\]\\{\\}\\~\\!\\?\\%\\^\\(\\)\\-\\+=\\x10") + additional;
// UTF8 quotes: «»“”‘’
const auto quotes = QString::fromUtf8("\xC2\xAB\xC2\xBB\xE2\x80\x9C\xE2\x80\x9D\xE2\x80\x98\xE2\x80\x99");
return qsl("\\s\\.,:;<>|'\"\\[\\]\\{\\}\\~\\!\\?\\%\\^\\(\\)\\-\\+=\\x10") + quotes + additional;
}

QString ExpressionHashtag() {
Expand Down

0 comments on commit 31ed521

Please sign in to comment.