summary refs log tree commit diff
path: root/resources
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2019-11-22 16:37:43 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2019-11-23 20:07:15 +0100
commit85aae9408b2bb8ebd64c91fdcb4eddc9aec49746 (patch)
tree74517e2adbc15059bf8e07176854ab1054c33a0a /resources
parentOnly mark messages as read, when room is active (diff)
downloadnheko-85aae9408b2bb8ebd64c91fdcb4eddc9aec49746.tar.xz
Wrap text in pre tags
Diffstat (limited to 'resources')
-rw-r--r--resources/qml/delegates/TextMessage.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/qml/delegates/TextMessage.qml b/resources/qml/delegates/TextMessage.qml
index 990a3f5b..f984b32f 100644
--- a/resources/qml/delegates/TextMessage.qml
+++ b/resources/qml/delegates/TextMessage.qml
@@ -1,6 +1,6 @@
 import ".."
 
 MatrixText {
-	text: model.formattedBody
+	text: model.formattedBody.replace("<pre>", "<pre style='white-space: pre-wrap'>")
 	width: parent ? parent.width : undefined
 }