Prevent rich from adding spaces and line breaks when wrapping text

This commit is contained in:
Micah Jerome Ellison 2023-03-15 17:36:11 -07:00
parent 8e65507185
commit 21b25765b7

View file

@ -135,5 +135,5 @@ def wrap_with_ansi_colors(text: str, width: int) -> str:
console = Console(width=width)
with console.capture() as capture:
console.print(richtext)
console.print(richtext, sep="", end="")
return capture.get()