diff --git a/examples/chef/chef.py b/examples/chef/chef.py index 005878aef9680d..7bb174fe875f58 100755 --- a/examples/chef/chef.py +++ b/examples/chef/chef.py @@ -163,7 +163,7 @@ def flush_print( with_border: Add boarder above and below to_print. """ if with_border: - border = ('-' * 64) + '\n' + border = ('-' * len(to_print)) + '\n' to_print = f"{border}{to_print}\n{border}" print(to_print, flush=True)