Make sure that char format is properly maintained for multiple formats when swithching to quote and back
This commit is contained in:
@@ -326,7 +326,7 @@ void ChatTextItemHelper::insertFragment(const QTextDocumentFragment fragment, In
|
|||||||
text = trim(text);
|
text = trim(text);
|
||||||
cursor.insertText(text);
|
cursor.insertText(text);
|
||||||
} else {
|
} else {
|
||||||
cursor.insertMarkdown(trim(fragment.toMarkdown()));
|
cursor.insertFragment(fragment);
|
||||||
}
|
}
|
||||||
if (keepPosition) {
|
if (keepPosition) {
|
||||||
cursor.setPosition(currentPosition);
|
cursor.setPosition(currentPosition);
|
||||||
|
|||||||
Reference in New Issue
Block a user