From 07fb63aa1e563a94322f92f4f426b87274ff4a2a Mon Sep 17 00:00:00 2001 From: miruka Date: Sat, 7 Sep 2019 00:19:36 -0400 Subject: [PATCH] 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 --- src/python/html_filter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/html_filter.py b/src/python/html_filter.py index e582bed3..41c06f05 100644 --- a/src/python/html_filter.py +++ b/src/python/html_filter.py @@ -61,7 +61,7 @@ class HtmlFilter: def filter(self, html: str, outgoing: bool = False) -> str: - html = self._sanitizer.sanitize(html) + html = self._sanitizer.sanitize(html).rstrip("\n") if outgoing: return html