Replace line breaks with <br> in telegram->matrix converter. Fixes #38

This commit is contained in:
Tulir Asokan
2018-01-30 21:24:49 +02:00
parent 10cc84d7a1
commit 5311facf97
+3
View File
@@ -224,6 +224,9 @@ def telegram_event_to_matrix(evt, source):
else:
html = quote + escape(text)
if html:
html = html.replace("\n", "<br/>")
return text, html