Fix newlines in unformatted channel posts

This commit is contained in:
Tulir Asokan
2022-02-03 17:43:35 +02:00
parent a55d9ae36a
commit da3f4af171
+1 -1
View File
@@ -198,7 +198,7 @@ async def telegram_to_matrix(
def force_html():
if not content.formatted_body:
content.format = Format.HTML
content.formatted_body = escape(content.body)
content.formatted_body = escape(content.body).replace("\n", "<br/>")
if require_html:
force_html()