diff options
author | Karel Zak | 2016-09-06 10:51:25 +0200 |
---|---|---|
committer | Karel Zak | 2016-09-06 10:51:25 +0200 |
commit | ff471d89a12eef331de8e66c33cd9a2c0e23984e (patch) | |
tree | 9f2e92f090eb3c6b9ef442abbdd74a75a7776a0d /include/mbsalign.h | |
parent | lib/randutils: add xsrand() and rand_get_number() (diff) | |
download | kernel-qcow2-util-linux-ff471d89a12eef331de8e66c33cd9a2c0e23984e.tar.gz kernel-qcow2-util-linux-ff471d89a12eef331de8e66c33cd9a2c0e23984e.tar.xz kernel-qcow2-util-linux-ff471d89a12eef331de8e66c33cd9a2c0e23984e.zip |
libsmartcols: support multi-line cells based on line breaks
Now libsmartcols completely control when and how wrap long
lines/cells. This is sometimes user unfriendly and it would be nice to
support multi-line cells where wrap is based on \n (new line char).
This patch add new column flag SCOLS_FL_WRAPNL.
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/mbsalign.h')
-rw-r--r-- | include/mbsalign.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mbsalign.h b/include/mbsalign.h index 74d25da11..6bdb50d3f 100644 --- a/include/mbsalign.h +++ b/include/mbsalign.h @@ -54,7 +54,7 @@ extern size_t mbs_safe_nwidth(const char *buf, size_t bufsz, size_t *sz); extern size_t mbs_safe_width(const char *s); extern char *mbs_safe_encode(const char *s, size_t *width); -extern char *mbs_safe_encode_to_buffer(const char *s, size_t *width, char *buf); +extern char *mbs_safe_encode_to_buffer(const char *s, size_t *width, char *buf, const char *safechars); extern size_t mbs_safe_encode_size(size_t bytes); #endif /* UTIL_LINUX_MBSALIGN_H */ |