Rework tbl(7) layout parsing:
authorschwarze <schwarze@openbsd.org>
Mon, 26 Jan 2015 18:41:45 +0000 (18:41 +0000)
committerschwarze <schwarze@openbsd.org>
Mon, 26 Jan 2015 18:41:45 +0000 (18:41 +0000)
commitbba1fa43bc398b49ffddf2d2df307b9dfb899a4c
tree2d20e6ec342c982676f512f2aa2986efb0de2312
parenta775e8ef6d5ce872ca15c94e4902a43b602ab34a
Rework tbl(7) layout parsing:
* Continue parsing even if part of the input is invalid.
* Do not require whitespace between cell specifications.
* Allow tabs as well as blanks between modifiers.
* Mark the 'm' modifier as unsupported.
* Parse and ignore the 'p' and 'v' modifiers.
* Better warning and error messages.
* Get rid of a static buffer.
Improved functionality but minus 50 lines of code.
regress/usr.bin/mandoc/tbl/Makefile
regress/usr.bin/mandoc/tbl/layout.in [new file with mode: 0644]
regress/usr.bin/mandoc/tbl/layout.out_ascii [new file with mode: 0644]
regress/usr.bin/mandoc/tbl/layout.out_lint [new file with mode: 0644]
share/man/man7/tbl.7
usr.bin/mandoc/mandoc.h
usr.bin/mandoc/read.c
usr.bin/mandoc/tbl_layout.c