Fix FormattedText newline handling
This commit is contained in:
parent
5a76797613
commit
3e5803d41b
1 changed files with 2 additions and 1 deletions
|
|
@ -108,7 +108,8 @@ class OutputBuffer:
|
||||||
"""Get formatted text for display."""
|
"""Get formatted text for display."""
|
||||||
result = []
|
result = []
|
||||||
for style, text in self.lines:
|
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)
|
return FormattedText(result)
|
||||||
|
|
||||||
def clear(self):
|
def clear(self):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue