diff options
author | Tulir Asokan <tulir@maunium.net> | 2018-04-14 11:50:57 +0300 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2018-04-14 11:50:57 +0300 |
commit | 85757c387e346ad45105dd124e7e87e044f6b77c (patch) | |
tree | 939c41db0bc279d76695919ef6e361ccad3d9bac /ui/messages/parser | |
parent | f5530ff99c62d0d97dfae352e922f8327ff418c1 (diff) |
Fix typo in newline stripping
Diffstat (limited to 'ui/messages/parser')
-rw-r--r-- | ui/messages/parser/htmlparser.go | 2 |
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) |