diff --git a/ui/text/text.cpp b/ui/text/text.cpp index bec2761..44a1196 100644 --- a/ui/text/text.cpp +++ b/ui/text/text.cpp @@ -491,7 +491,8 @@ bool Parser::checkEntities() { const auto isSingleLine = !trimmed.isEmpty() && ranges::none_of(trimmed, IsNewline); - if (isSingleLine) { + // TODO: remove trimming. + if (isSingleLine && (entityType == EntityType::Code)) { _monos.push_back({ .text = text, .type = entityType }); monoIndex = _monos.size(); }