diff options
author | Karel Zak | 2016-09-16 13:00:47 +0200 |
---|---|---|
committer | Karel Zak | 2016-09-16 13:00:47 +0200 |
commit | 346e3a40a0dd8ff543a3c3daf32d47783e8dc7a9 (patch) | |
tree | 4799a980dcc2220deaf0dac06ab65c8bf3eb5b85 /libsmartcols/src/table.c | |
parent | tests: add libsmartcols wrap and wrapnl tree tests (diff) | |
download | kernel-qcow2-util-linux-346e3a40a0dd8ff543a3c3daf32d47783e8dc7a9.tar.gz kernel-qcow2-util-linux-346e3a40a0dd8ff543a3c3daf32d47783e8dc7a9.tar.xz kernel-qcow2-util-linux-346e3a40a0dd8ff543a3c3daf32d47783e8dc7a9.zip |
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>
Diffstat (limited to 'libsmartcols/src/table.c')
-rw-r--r-- | libsmartcols/src/table.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsmartcols/src/table.c b/libsmartcols/src/table.c index c0cf24636..6a0f8303d 100644 --- a/libsmartcols/src/table.c +++ b/libsmartcols/src/table.c @@ -725,7 +725,7 @@ int scols_table_set_symbols(struct libscols_table *tb, * * Enable/disable line separator printing. This is useful if you want to * re-printing the same line more than once (e.g. progress bar). Don't use it - * if you're not sure. + * if you're not sure. This option may be ignored for JSON output. * * Returns: 0 on success, negative number in case of an error. */ |