Fix typo in newline stripping

This commit is contained in:
Tulir Asokan 2018-04-14 11:50:57 +03:00
parent f5530ff99c
commit 85757c387e

View File

@ -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)