From 85757c387e346ad45105dd124e7e87e044f6b77c Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sat, 14 Apr 2018 11:50:57 +0300 Subject: Fix typo in newline stripping --- ui/messages/parser/htmlparser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3