Strip leading/trailing \n from html filter output
This commit is contained in:
parent
441c9d0c1d
commit
1f73f634e8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user