Wrap text in pre tags

pull/91/head
Nicolas Werner 5 years ago
parent 7bd875004f
commit 85aae9408b
  1. 2
      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
}

Loading…
Cancel
Save