From 3279a1befdd36445e3308d5e126c663d9da17c34 Mon Sep 17 00:00:00 2001 From: miruka Date: Thu, 15 Apr 2021 16:22:44 -0400 Subject: [PATCH] Fix missing tail for inline --- src/backend/html_markdown.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/backend/html_markdown.py b/src/backend/html_markdown.py index 0c9196c2..6176d1b2 100644 --- a/src/backend/html_markdown.py +++ b/src/backend/html_markdown.py @@ -487,12 +487,14 @@ class HTMLProcessor: try: user_id = el.find("blockquote").findall("a")[1].text - text = f"↩ {user_id[1:].split(':')[0]}: " # U+21A9 arrow - except (AttributeError, IndexError) as e: + text = f"↩ {user_id[1: ].split(':')[0]}: " # U+21A9 arrow + tail = el.tail.rstrip().rstrip("⏎") + except (AttributeError, IndexError): return el el.clear() el.text = text + el.tail = tail return el