diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2013-10-06 13:27:50 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2013-10-06 13:27:50 +0000 |
commit | 5849e3c7e5931eaac0102be731275919c6dd190c (patch) | |
tree | 7cd7181adf3b5b7c4ca0c210c9f8b5b2854c843a /regress/usr.bin/mandoc | |
parent | 1f05b920f382faabc98ad0cfbac1cce390bc75ec (diff) |
If there is random stuff inside a .Bl block body before the first .It,
do not throw a FATAL error and do not die, but just throw a WARNING
and move the stuff out of the .Bl block.
This bug felt completely 2008-ish; meanwhile, such bugs from the
Kristaps-doesnt-like-syntax-errors-so-lets-just-give-up--Era
are becoming rare, but this was one of the last survivors.
Thanks to bentley@ for reminding me to finally fix this.
Diffstat (limited to 'regress/usr.bin/mandoc')
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Bl/Makefile | 4 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Bl/noIt.in | 22 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Bl/noIt.out_ascii | 15 |
3 files changed, 39 insertions, 2 deletions
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/Makefile b/regress/usr.bin/mandoc/mdoc/Bl/Makefile index 6e3472a8d2d..54a2bfe8f9e 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.15 2012/11/19 22:28:35 schwarze Exp $ +# $OpenBSD: Makefile,v 1.16 2013/10/06 13:27:48 schwarze Exp $ REGRESS_TARGETS = item inset diag ohang bullet dash enum hang tag REGRESS_TARGETS += column extend nested -REGRESS_TARGETS += multitype multitag empty bareTa unclosed break broken +REGRESS_TARGETS += multitype multitag empty noIt bareTa unclosed break broken # groff-1.20.1 defects: # - empty lists ruin indentation and sometimes cause empty lines diff --git a/regress/usr.bin/mandoc/mdoc/Bl/noIt.in b/regress/usr.bin/mandoc/mdoc/Bl/noIt.in new file mode 100644 index 00000000000..5e5b4b473a3 --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Bl/noIt.in @@ -0,0 +1,22 @@ +.Dd October 6, 2013 +.Dt BL-NOIT 1 +.Os OpenBSD +.Sh NAME +.Nm Bl-noIt +.Nd list missing item macros +.Sh DESCRIPTION +.Bl -tag -width Ds +Stray text. +.Em More stray text. +.It tag +Tagged text. +.El +.Bl -bullet +Stray text. +.Em More stray text. +.It +Bullet point. +.El +.Bl -dash +Stray text only. +.El diff --git a/regress/usr.bin/mandoc/mdoc/Bl/noIt.out_ascii b/regress/usr.bin/mandoc/mdoc/Bl/noIt.out_ascii new file mode 100644 index 00000000000..474d13ac11c --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Bl/noIt.out_ascii @@ -0,0 +1,15 @@ +BL-NOIT(1) OpenBSD Reference Manual BL-NOIT(1) + +NNAAMMEE + BBll--nnooIItt - list missing item macros + +DDEESSCCRRIIPPTTIIOONN + Stray text. _M_o_r_e _s_t_r_a_y _t_e_x_t_. + + tag Tagged text. + Stray text. _M_o_r_e _s_t_r_a_y _t_e_x_t_. + + oo Bullet point. + Stray text only. + +OpenBSD October 6, 2013 OpenBSD |