diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-08-13 07:19:28 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-08-13 07:19:28 -0700 |
commit | 4b308561021d4dedd7e83e5df30534d1fdde2216 (patch) | |
tree | 5dfe9d9f3463b3d819387618e1dc6005d831aec9 /lib.h | |
parent | 1684fc0bedfa9fa9a5a7a22d6fb44e660a203a1c (diff) | |
download | txr-4b308561021d4dedd7e83e5df30534d1fdde2216.tar.gz txr-4b308561021d4dedd7e83e5df30534d1fdde2216.tar.bz2 txr-4b308561021d4dedd7e83e5df30534d1fdde2216.zip |
Observe display width in format.
Take into account string display width in field trimming and padding
calculations, including situations where only half a character fits.
* stream.c (calc_fitlen): New function.
(vformat_str): Revised to use calc_fitlen. If calc_fitlen indicates
that there is no trimming or padding, then use put_string rather than
put_char.
* txr.1: Update description of format with regard to use of
dispaly width in field calculations.
Diffstat (limited to 'lib.h')
0 files changed, 0 insertions, 0 deletions