mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
Prevent rich from adding spaces and line breaks when wrapping text
This commit is contained in:
parent
8e65507185
commit
21b25765b7
1 changed files with 1 additions and 1 deletions
|
@ -135,5 +135,5 @@ def wrap_with_ansi_colors(text: str, width: int) -> str:
|
||||||
|
|
||||||
console = Console(width=width)
|
console = Console(width=width)
|
||||||
with console.capture() as capture:
|
with console.capture() as capture:
|
||||||
console.print(richtext)
|
console.print(richtext, sep="", end="")
|
||||||
return capture.get()
|
return capture.get()
|
||||||
|
|
Loading…
Add table
Reference in a new issue