CVSROOT: /cvs Module name: src Changes by: schwa...@cvs.openbsd.org 2012/05/26 19:01:25
Modified files: usr.bin/mandoc : tbl_term.c term.c term.h Added files: regress/usr.bin/mandoc/man/TS: Makefile vspace.in vspace.out_ascii Log message: Fix the vertical spacing around tbl(7) instances in man(7). Groff forces the document author to manually request sufficient spacing after .TE - that is, at least .sp 1v after a table with the "box" option and at least .sp 2v after a table with the "doublebox" option - or else it clobbers the box. I consider that insane, so i'm not imitating groff in that respect. Instead, i add at least as much vertical space as groff, or more where required to avoid clobbering the box. Consequently, output will be identical for input that looks sane with groff, and mandoc will make output look better for input that looks bad with groff. As a side effect, having identical output for portable input makes it possible to set up the first regression tests for tbl(7).