aboutsummaryrefslogtreecommitdiff
path: root/ui/messages
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2018-04-14 11:50:57 +0300
committerTulir Asokan <tulir@maunium.net>2018-04-14 11:50:57 +0300
commit85757c387e346ad45105dd124e7e87e044f6b77c (patch)
tree939c41db0bc279d76695919ef6e361ccad3d9bac /ui/messages
parentf5530ff99c62d0d97dfae352e922f8327ff418c1 (diff)
Fix typo in newline stripping
Diffstat (limited to 'ui/messages')
-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)