mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-20 10:33:41 -05:00
Fix typo in newline stripping
This commit is contained in:
parent
f5530ff99c
commit
85757c387e
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue