Skip to content
Snippets Groups Projects
Commit e2fc676c authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Revert keeping whitespace in html, it breaks lists

parent 3c91b5b4
No related branches found
No related tags found
No related merge requests found
Pipeline #619 passed
......@@ -4,7 +4,7 @@ import im.nheko 1.0
MatrixText {
property string formatted: model.data.formattedBody
text: "<span style='white-space: pre-wrap'><style type=\"text/css\">a { color:" + colors.link + ";}\ncode { background-color: " + colors.alternateBase + ";}</style>" + formatted.replace("<pre>", "<pre style='white-space: pre-wrap; background-color: " + colors.alternateBase + "'>") + "</span>"
text: "<style type=\"text/css\">a { color:" + colors.link + ";}\ncode { background-color: " + colors.alternateBase + ";}</style>" + formatted.replace("<pre>", "<pre style='white-space: pre-wrap; background-color: " + colors.alternateBase + "'>")
width: parent ? parent.width : undefined
height: isReply ? Math.round(Math.min(timelineRoot.height / 8, implicitHeight)) : undefined
clip: isReply
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment