summary refs log tree commit diff
path: root/resources/qml/delegates
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2022-02-14 16:47:27 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2022-02-14 16:47:27 +0100
commit1df1b5037ea2962c5e947c9e209ac32b83780174 (patch)
treed6c329335af6c7e16415556dbe347937c9ab45cb /resources/qml/delegates
parentFix padding in redactions (diff)
downloadnheko-1df1b5037ea2962c5e947c9e209ac32b83780174.tar.xz
Fix second codeblock not wrapping
Diffstat (limited to 'resources/qml/delegates')
-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 ac681d40..741d8aa8 100644
--- a/resources/qml/delegates/TextMessage.qml
+++ b/resources/qml/delegates/TextMessage.qml
@@ -32,7 +32,7 @@ MatrixText {
     }
     blockquote { margin-left: 1em; }
     </style>
-    " + formatted.replace("<pre>", "<pre style='white-space: pre-wrap; background-color: " + Nheko.colors.alternateBase + "'>").replace("<del>", "<s>").replace("</del>", "</s>").replace("<strike>", "<s>").replace("</strike>", "</s>")
+    " + formatted.replace(/<pre>/g, "<pre style='white-space: pre-wrap; background-color: " + Nheko.colors.alternateBase + "'>").replace(/<del>/g, "<s>").replace(/<\/del>/g, "</s>").replace(/<strike>/g, "<s>").replace(/<\/strike>/g, "</s>")
     width: parent.width
     height: isReply ? Math.round(Math.min(timelineView.height / 8, implicitHeight)) : implicitHeight
     clip: isReply