CVSROOT:        /cvs
Module name:    src
Changes by:     schwa...@cvs.openbsd.org        2017/01/26 11:28:05

Modified files:
        usr.bin/mandoc : html.c html.h man_html.c 
        regress/usr.bin/mandoc/char/space: zerowidth.out_html 
        regress/usr.bin/mandoc/char/unicode: ascii.out_html 
                                             latin1.out_html 
                                             latin1diff.out_html 
                                             named.out_html 
                                             namediff.out_html 
                                             nogroff.out_html 

Log message:
Fix -man -Thtml formatting after .nf (which has nothing to do
with "literal", by the way, it means "no fill"):

* Use <pre> such that whitespace is preserved.
* Preserve lines breaks.
* For font alternating macros, avoid node recursion which required
scary juggling with the fill state.  Instead, simply print the text
children directly.

Missing feature first noticed by kristaps@ in 2011,
the again reported by afresh1@ in 2016,
and finally reported here: https://github.com/Debian/debiman/issues/21 ,
which i only found because of Shane Kerr's comment here:
https://plus.google.com/110314300533310775053/posts/H1eaw9Yskoc

Reply via email to