Skip to content

Commit e063caf

Browse files
committed
markup in textog
1 parent c708e8a commit e063caf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/textual/widgets/_text_log.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ def write(self, content: RenderableType | object) -> None:
7474
else:
7575
if isinstance(content, str):
7676
if self.markup:
77-
content = Text.from_markup(content)
78-
if self.highlight:
79-
renderable = self.highlighter(content)
77+
renderable = Text.from_markup(content)
8078
else:
8179
renderable = Text(content)
80+
if self.highlight:
81+
renderable = self.highlighter(content)
8282
else:
8383
renderable = cast(RenderableType, content)
8484

0 commit comments

Comments
 (0)