Strip leading/trailing \n from html filter output

This commit is contained in:
miruka 2019-07-03 18:36:03 -04:00
parent 441c9d0c1d
commit 1f73f634e8

View File

@ -50,7 +50,7 @@ class HtmlFilter:
result = b"".join((etree.tostring(el, encoding="utf-8")
for el in tree[0].iterchildren()))
return str(result, "utf-8")
return str(result, "utf-8").strip("\n")
@property