Merge branch 'master' into python3.5

This commit is contained in:
Tulir Asokan
2018-02-14 23:35:33 +02:00
6 changed files with 114 additions and 58 deletions
+6
View File
@@ -272,6 +272,12 @@ async def telegram_event_to_matrix(evt, source, native_replies=False, message_li
else:
html = quote + escape(text)
if evt.post and evt.post_author:
if not html:
html = escape(text)
text += f"\n- {evt.post_author}"
html += f"<br/><i>- <u>{evt.post_author}</u></i>"
if html:
html = html.replace("\n", "<br/>")