]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libsmartcols: cleanup line separator usage
authorKarel Zak <kzak@redhat.com>
Fri, 16 Sep 2016 11:00:47 +0000 (13:00 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 16 Sep 2016 11:00:47 +0000 (13:00 +0200)
commit346e3a40a0dd8ff543a3c3daf32d47783e8dc7a9
tree4799a980dcc2220deaf0dac06ab65c8bf3eb5b85
parent73bcb64f1abe9aa26953152aed500a4d349987b5
libsmartcols: cleanup line separator usage

 * use line separator only to separate lines, not after last line
 * explicitly print \n after table in scols_print_table()
 * don't terminate table by \n or line separator in scols_print_table_to_string()

Note that the patch is little bit trick due to impact to the trees
printing. Now print_tree_line() should be more readable.

Signed-off-by: Karel Zak <kzak@redhat.com>
libsmartcols/src/table.c
libsmartcols/src/table_print.c