]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libsmartcols: add scols_cell_get_alignment()
authorKarel Zak <kzak@redhat.com>
Mon, 9 Jan 2017 12:28:24 +0000 (13:28 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 17 Jan 2017 15:10:17 +0000 (16:10 +0100)
commita7c8fe3970716a0962b837bf70dd5b119f16f3ba
tree5e344839136cd415b0bc7f66b8add545981a1b31
parent6a119af3f56a5b2864c51f7c4763b55a316d9519
libsmartcols: add scols_cell_get_alignment()

Just to hide that we use cell flags (bitwise operations) to define
cell content alignment. The patch also more explicitly specifies the
flags in the header file.

The alignment is evaluated in the order: right, center, left. The
default is left.

Note that SCOLS_CELL_FL_* are used for for table title only.

v2.29.1: function not exported by API
Signed-off-by: Karel Zak <kzak@redhat.com>
libsmartcols/src/cell.c
libsmartcols/src/libsmartcols.h.in
libsmartcols/src/smartcolsP.h
libsmartcols/src/table_print.c