diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2012-11-19 22:28:36 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2012-11-19 22:28:36 +0000 |
commit | f6aefaa94996adb3a94cf829d7d536f2457f186f (patch) | |
tree | 7e9d0f5a59bcbb947052eb699b49cf422ce4233b /regress | |
parent | 714b5995a4bacf5d3b4f69e18b24f338eb290330 (diff) |
Do not crash on stray .Ta macros found outside column lists.
Problem reported by jmc@, thanks.
Diffstat (limited to 'regress')
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Bl/Makefile | 6 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Bl/bareTa.in | 21 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Bl/bareTa.out_ascii | 15 |
3 files changed, 39 insertions, 3 deletions
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/Makefile b/regress/usr.bin/mandoc/mdoc/Bl/Makefile index 089f8547b27..6e3472a8d2d 100644 --- a/regress/usr.bin/mandoc/mdoc/Bl/Makefile +++ b/regress/usr.bin/mandoc/mdoc/Bl/Makefile @@ -1,9 +1,9 @@ -# $OpenBSD: Makefile,v 1.14 2012/11/18 17:59:03 schwarze Exp $ +# $OpenBSD: Makefile,v 1.15 2012/11/19 22:28:35 schwarze Exp $ REGRESS_TARGETS = item inset diag ohang bullet dash enum hang tag REGRESS_TARGETS += column extend nested -REGRESS_TARGETS += multitype multitag empty unclosed break broken +REGRESS_TARGETS += multitype multitag empty bareTa unclosed break broken # groff-1.20.1 defects: # - empty lists ruin indentation and sometimes cause empty lines @@ -12,6 +12,6 @@ REGRESS_TARGETS += multitype multitag empty unclosed break broken SKIP_GROFF ?= empty break broken -SKIP_TMAN ?= column multitype multitag break broken +SKIP_TMAN ?= column multitype multitag bareTa break broken .include <bsd.regress.mk> diff --git a/regress/usr.bin/mandoc/mdoc/Bl/bareTa.in b/regress/usr.bin/mandoc/mdoc/Bl/bareTa.in new file mode 100644 index 00000000000..20f003766a9 --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Bl/bareTa.in @@ -0,0 +1,21 @@ +.Dd November 12, 2012 +.Dt TA-BARE 1 +.Os OpenBSD +.Sh NAME +.Nm Ta-bare +.Nd bare tabular column macro +.Sh DESCRIPTION +initial text +.Ta ignored arguments +middle text +.Bl -item -offset indent +.It +.Ta ignored arguments +indented text +.El +middle text +.Bl -dash +.It Ta ignored arguments +indented text +.El +final text diff --git a/regress/usr.bin/mandoc/mdoc/Bl/bareTa.out_ascii b/regress/usr.bin/mandoc/mdoc/Bl/bareTa.out_ascii new file mode 100644 index 00000000000..c5139d9cee5 --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Bl/bareTa.out_ascii @@ -0,0 +1,15 @@ +TA-BARE(1) OpenBSD Reference Manual TA-BARE(1) + +NNAAMMEE + TTaa--bbaarree - bare tabular column macro + +DDEESSCCRRIIPPTTIIOONN + initial text middle text + + indented text + middle text + + -- indented text + final text + +OpenBSD November 12, 2012 OpenBSD |