diff options
author | 2010-05-17 02:25:42 +0000 | |
---|---|---|
committer | 2010-05-17 02:25:42 +0000 | |
commit | a9b416707cf74adbd9a217ab6a714cfeef6af1a9 (patch) | |
tree | 66fe4f8a1d9af7c4448f212b213219f9a3d6109b /lib | |
parent | Rewrite the main mdoc text parser, mdoc_ptext() (diff) | |
download | wireguard-openbsd-a9b416707cf74adbd9a217ab6a714cfeef6af1a9.tar.xz wireguard-openbsd-a9b416707cf74adbd9a217ab6a714cfeef6af1a9.zip |
The function term_flushln() had effectively forked wrt to bsd.lv.
This is the OpenBSD part of the main step to bring it back in sync.
At the same time, this prevents trailing whitespace in the output:
We delay writing blanks until we are sure printable characters follow.
This is achieved by
* not using vbl any longer for the control of line breaking
* such that vbl can sum up all kinds of white space
* before writing a word, printing all the blanks collected in vbl
* within the word, adding NBSP chars to vbl, then continuing with the word
* after the word, adding blanks to vbl, then starting the next word
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions