rstrip excess \n from html filter output
Caused the event time to be incorrectly shown on its own on a new line for messages that were ~600px
This commit is contained in:
parent
393d404242
commit
07fb63aa1e
|
@ -61,7 +61,7 @@ class HtmlFilter:
|
||||||
|
|
||||||
|
|
||||||
def filter(self, html: str, outgoing: bool = False) -> str:
|
def filter(self, html: str, outgoing: bool = False) -> str:
|
||||||
html = self._sanitizer.sanitize(html)
|
html = self._sanitizer.sanitize(html).rstrip("\n")
|
||||||
|
|
||||||
if outgoing:
|
if outgoing:
|
||||||
return html
|
return html
|
||||||
|
|
Loading…
Reference in New Issue
Block a user