Support negative indentations for mdoc(7) displays and lists.
authorschwarze <schwarze@openbsd.org>
Wed, 24 Dec 2014 23:31:59 +0000 (23:31 +0000)
committerschwarze <schwarze@openbsd.org>
Wed, 24 Dec 2014 23:31:59 +0000 (23:31 +0000)
commit25da273366ceefa9ff28507f7f44a8f5b574aae6
treeb41fcd3a09fbfb4ad01b225f466d963532c09294
parente8510cd74761a432114ed69f500089ce2b8434a0
Support negative indentations for mdoc(7) displays and lists.
Not exactly recommended for use, rather for groff compatibility.
While here, introduce similar SHRT_MAX limits as in man(7),
fixing a few cases of infinite output found by jsg@ with afl.
18 files changed:
regress/usr.bin/mandoc/mdoc/Bd/Makefile
regress/usr.bin/mandoc/mdoc/Bd/offset-neg.in [new file with mode: 0644]
regress/usr.bin/mandoc/mdoc/Bd/offset-neg.out_ascii [new file with mode: 0644]
regress/usr.bin/mandoc/mdoc/Bl/bullet.in
regress/usr.bin/mandoc/mdoc/Bl/bullet.out_ascii
regress/usr.bin/mandoc/mdoc/Bl/dash.in
regress/usr.bin/mandoc/mdoc/Bl/dash.out_ascii
regress/usr.bin/mandoc/mdoc/Bl/enum.in
regress/usr.bin/mandoc/mdoc/Bl/enum.out_ascii
regress/usr.bin/mandoc/mdoc/Bl/hang.in
regress/usr.bin/mandoc/mdoc/Bl/hang.out_ascii
regress/usr.bin/mandoc/mdoc/Bl/offset.in
regress/usr.bin/mandoc/mdoc/Bl/offset.out_ascii
regress/usr.bin/mandoc/mdoc/Bl/tag.in
regress/usr.bin/mandoc/mdoc/Bl/tag.out_ascii
usr.bin/mandoc/mdoc_man.c
usr.bin/mandoc/mdoc_term.c
usr.bin/mandoc/term.c