Replace line breaks with <br> in telegram->matrix converter. Fixes #38
This commit is contained in:
@@ -224,6 +224,9 @@ def telegram_event_to_matrix(evt, source):
|
|||||||
else:
|
else:
|
||||||
html = quote + escape(text)
|
html = quote + escape(text)
|
||||||
|
|
||||||
|
if html:
|
||||||
|
html = html.replace("\n", "<br/>")
|
||||||
|
|
||||||
return text, html
|
return text, html
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user