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:
miruka 2019-09-07 00:19:36 -04:00
parent 393d404242
commit 07fb63aa1e

View File

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