Handle stripnewlines for plain text list

Handle stripping new lines when the plain text input is a markdown list.
This commit is contained in:
James Graham
2023-03-26 20:27:23 +00:00
parent 78a6179a11
commit a0ae8b28b2
3 changed files with 16 additions and 8 deletions

View File

@@ -468,7 +468,7 @@ QString NeoChatRoom::eventToString(const RoomEvent &evt, Qt::TextFormat format,
fileCaption = e.plainBody() + " | " + fileCaption;
}
textHandler.setData(fileCaption);
return !fileCaption.isEmpty() ? textHandler.handleRecievePlainText() : i18n("a file");
return !fileCaption.isEmpty() ? textHandler.handleRecievePlainText(Qt::PlainText, stripNewlines) : i18n("a file");
}
QString body;