Skip to content

Commit 8fd8d92

Browse files
committed
Fixed error: text following another block doesn't render
1 parent 202da99 commit 8fd8d92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/custom_widgets/message_widget.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ def set_text(self, text:str=None):
575575
parts.append({"type": "table", "text": table_text})
576576
pos = end
577577
# Text blocks
578-
if pos < len(self.text[pos:]):
578+
if pos < len(self.text):
579579
normal_text = self.text[pos:]
580580
if normal_text.strip():
581581
parts.append({"type": "normal", "text": normal_text.strip()})

0 commit comments

Comments
 (0)