Skip to content

Commit a211fdf

Browse files
committed
Fix visual appearance when printing background colors
1 parent 5081947 commit a211fdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/color.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def do_taste_the_rainbow(self, args) -> None:
2727

2828
for color_member in Color:
2929
style = Style(bgcolor=color_member.value) if args.background else Style(color=color_member.value)
30-
self.poutput(f"{color_member.name}", style=style)
30+
self.poutput(f"{color_member.name}", style=style, soft_wrap=False)
3131

3232

3333
if __name__ == '__main__':

0 commit comments

Comments
 (0)