Enable Rich markup in operation log output
Fixes raw [red]...[/red] tags showing instead of colored text. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -15,7 +15,7 @@ class OperationLog(ModalScreen[None]):
|
|||||||
def compose(self) -> ComposeResult:
|
def compose(self) -> ComposeResult:
|
||||||
with Vertical(id="op-log"):
|
with Vertical(id="op-log"):
|
||||||
yield Static(self._title, id="ol-title")
|
yield Static(self._title, id="ol-title")
|
||||||
yield RichLog(id="ol-log", wrap=True, highlight=True)
|
yield RichLog(id="ol-log", wrap=True, highlight=True, markup=True)
|
||||||
yield Button("Close", variant="primary", id="ol-close")
|
yield Button("Close", variant="primary", id="ol-close")
|
||||||
|
|
||||||
def on_button_pressed(self, event: Button.Pressed) -> None:
|
def on_button_pressed(self, event: Button.Pressed) -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user