From 7eaf7f8aaa5c7aac9cbc6e5dc92dea7944003eba Mon Sep 17 00:00:00 2001 From: John Preston Date: Sun, 3 Mar 2024 15:17:55 +0400 Subject: [PATCH] Fix bold formatting in the beginning of a quote. --- ui/text/text_entity.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/text/text_entity.cpp b/ui/text/text_entity.cpp index 65c9dee..7083ac9 100644 --- a/ui/text/text_entity.cpp +++ b/ui/text/text_entity.cpp @@ -2125,7 +2125,7 @@ EntitiesInText ConvertTextTagsToEntities(const TextWithTags::Tags &tags) { openType(EntityType::CustomUrl, nextState.link); } } - for (const auto type : kInMaskTypes) { + for (const auto type : kInMaskTypes | ranges::views::reverse) { if (nextState.has(type) && !state.has(type)) { openType(type, nextState.language); }