Fix FormattedText newline handling

This commit is contained in:
dullfig 2026-01-11 14:39:21 -08:00
parent 5a76797613
commit 3e5803d41b

View file

@ -108,7 +108,8 @@ class OutputBuffer:
"""Get formatted text for display."""
result = []
for style, text in self.lines:
result.append((f"class:{style}", text + "\n"))
result.append((f"class:{style}", text))
result.append(("", "\n")) # Newline as separate unstyled element
return FormattedText(result)
def clear(self):