Partial implementation of .Bd -centered.
authorschwarze <schwarze@openbsd.org>
Fri, 8 Aug 2014 15:03:24 +0000 (15:03 +0000)
committerschwarze <schwarze@openbsd.org>
Fri, 8 Aug 2014 15:03:24 +0000 (15:03 +0000)
commit2065e47a4f71d5392cafbd7d2c0cfacce9c053fa
treefa5eeb0afb2ca2221cf50e4d3fdcd0acd7c60899
parentf51b43e6a67ab846f96468227470a1f51dd19826
Partial implementation of .Bd -centered.

In groff, .Bd -centered operates in fill mode, which is relatively
hard to implement, while this implementation operates in non-fill
mode so far.  As long as you pay attention that your lines do not
overflow, it works.  To make sure that rendering is the same for
mandoc and groff, it is recommended to insert .br between lines
for now.  This implementation will need improvement later.
usr.bin/mandoc/mdoc.h
usr.bin/mandoc/mdoc_term.c
usr.bin/mandoc/mdoc_validate.c