diff --git a/mautrix_telegram/formatter/from_telegram.py b/mautrix_telegram/formatter/from_telegram.py index 17272f7e..ccc97ade 100644 --- a/mautrix_telegram/formatter/from_telegram.py +++ b/mautrix_telegram/formatter/from_telegram.py @@ -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", "
") if require_html: force_html()