From 835ba51f5e184b784bf676a36eda8e2d5f37d87b Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 31 Oct 2023 12:47:22 +0400 Subject: [PATCH] Don't include newlines in format by default. --- ui/widgets/fields/input_field.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/widgets/fields/input_field.cpp b/ui/widgets/fields/input_field.cpp index d88b93e..1005389 100644 --- a/ui/widgets/fields/input_field.cpp +++ b/ui/widgets/fields/input_field.cpp @@ -2040,7 +2040,8 @@ QString InputField::getTextPart( block = block.next(); if (block != till) { tagAccumulator.feed( - TagWithoutCustomEmoji(tagAccumulator.currentTag()), + TagWithoutCustomEmoji( + block.charFormat().property(kTagProperty).toString()), result.size()); result.append('\n'); markdownTagAccumulator.feed(newline, 1, lastTag);