diff options
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r-- | cmd2/cmd2.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index 7fb85a1a..417d45c3 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -3688,9 +3688,10 @@ class Cmd(cmd.Cmd): if totwidth <= display_width: break else: + # The output is wider than display_width. Print 1 column with each string on its own row. nrows = len(str_list) ncols = 1 - colwidths = [0] + colwidths = [1] for row in range(nrows): texts = [] for col in range(ncols): |