aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ui/messages/parser/htmlparser.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/messages/parser/htmlparser.go b/ui/messages/parser/htmlparser.go
index cb8f254..9ca707f 100644
--- a/ui/messages/parser/htmlparser.go
+++ b/ui/messages/parser/htmlparser.go
@@ -72,7 +72,7 @@ func (parser *MatrixHTMLProcessor) HandleText(text string) {
}
}
- if parser.openTags.Has("pre", "code") {
+ if !parser.openTags.Has("pre", "code") {
text = strings.Replace(text, "\n", "", -1)
}
parser.text = parser.text.AppendStyle(text, style)