From 26f3af90bb62aa26ec03dbc8272c570c35ff32c8 Mon Sep 17 00:00:00 2001 From: Micah Jerome Ellison Date: Mon, 30 Oct 2023 17:23:49 -0700 Subject: [PATCH] Attempt to bypass rich's color removal process when dumping to bash variable --- jrnl/output.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jrnl/output.py b/jrnl/output.py index 0230244b..80bbcc5b 100644 --- a/jrnl/output.py +++ b/jrnl/output.py @@ -136,7 +136,7 @@ def format_msg_text(msg: Message) -> Text: def wrap_with_ansi_colors(text: str, width: int) -> str: richtext = Text.from_ansi(text, no_wrap=False, tab_size=None) - console = Console(width=width) + console = Console(width=width, no_color=False) with console.capture() as capture: console.print(richtext, sep="", end="") return capture.get()