CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]        2010/04/22 18:23:47

Modified files:
        usr.bin/mandoc : mdoc_term.c term.c term.h 

Log message:
Handle literal tab characters both in literal context (.Bd -literal)
and outside.  In literal context, tab stops are at each eigth column;
outside, they are at each fifth column.

Use tabwidth = 5 as the default and temporarily switch to 8 in termp_bd_pre().
This requires to move the term_flushln() of the final line of a display from
termp_bd_post() to termp_bd_pre(); the former still needs term_newln()
to handle the final lines of non-literal displays.

Handling inside term_flushln() is tricky because a tab collapses with
inter-word spacing, but not with another tab.

Missing feature reported independently by jmc@ and dera...@.

Reply via email to