diff options
| author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2021-03-01 23:01:30 -0500 |
|---|---|---|
| committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2021-03-01 23:01:30 -0500 |
| commit | abb9764cc0d9de4088047b035d4905fdfd6d0104 (patch) | |
| tree | 0d7c1fe7127ae2b0ded3097543a9097c8730ece8 /cmd2 | |
| parent | 44f54ddec38abb6d569ae8cd024ae2cdea71c8cc (diff) | |
| parent | d4035b43d3a7edda50908f2e6bb090381831975d (diff) | |
| download | cmd2-git-abb9764cc0d9de4088047b035d4905fdfd6d0104.tar.gz | |
Update CHANGELOG with info on recent bug fix PR
Diffstat (limited to 'cmd2')
| -rw-r--r-- | cmd2/table_creator.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd2/table_creator.py b/cmd2/table_creator.py index 8dcd80f0..d159ddbf 100644 --- a/cmd2/table_creator.py +++ b/cmd2/table_creator.py @@ -351,6 +351,10 @@ class TableCreator: last_word = data_line_index == len(data_str_lines) - 1 and char_index == len(data_line) add_word(cur_word_buf.getvalue(), last_word) + # If the last line is empty, then add a newline + elif data_line_index == len(data_str_lines) - 1: + wrapped_buf.write('\n') + # Stop line loop if we've written to max_lines if total_lines == max_lines: # If this isn't the last data line and there is space |
