]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libsmartcols: multi-line cells refactoring
authorKarel Zak <kzak@redhat.com>
Thu, 12 Oct 2023 20:38:43 +0000 (22:38 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 23 Oct 2023 19:54:00 +0000 (21:54 +0200)
commite222a23f110e4859655fcb5b9f7e3ad5d7f03e01
tree0ecb142133315d9726479b257a3c91feaf3885ca
parent97448130fe342813ebd0453ed0280ac18d287629
libsmartcols: multi-line cells refactoring

* move data wrapping code to column.c
* do data wrapping on one place when copy cell data to buffer
* use table cursor in affected functions
* calculate tree ASCII-art to wrapped data
* mark wrap_chunksize() callback as deprecated; library calculates
  the size itself from real data

Signed-off-by: Karel Zak <kzak@redhat.com>
libsmartcols/src/calculate.c
libsmartcols/src/column.c
libsmartcols/src/print.c
libsmartcols/src/smartcolsP.h