Fixed error: text following another block doesn't render

This commit is contained in:
jeffser 2024-10-11 16:13:13 -06:00
parent 202da99fa7
commit 8fd8d920e6

View File

@ -575,7 +575,7 @@ class message(Gtk.Overlay):
parts.append({"type": "table", "text": table_text})
pos = end
# Text blocks
if pos < len(self.text[pos:]):
if pos < len(self.text):
normal_text = self.text[pos:]
if normal_text.strip():
parts.append({"type": "normal", "text": normal_text.strip()})