diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2012-01-04 02:17:43 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2012-01-04 02:17:43 +0000 |
commit | 41fa2a7fc200c650a7e08bf87b6751e7702b2eab (patch) | |
tree | 29417a8e86a4fa63254cab214eb77c888e2f163e /regress | |
parent | a788b08e4a13f160295ff1c5ed5f72c192a31c6d (diff) |
Heads of .It macros in -diag lists are not parsed,
even though .It macros in general are parsed.
Fixing a bug reported by deraadt@,
based on an incomplete fix by kristaps@,
and update the test suite to catch this issue.
Diffstat (limited to 'regress')
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Bl/diag.in | 12 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Bl/diag.out_ascii | 7 |
2 files changed, 17 insertions, 2 deletions
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/diag.in b/regress/usr.bin/mandoc/mdoc/Bl/diag.in index c234988c7f3..2c2a9aec9df 100644 --- a/regress/usr.bin/mandoc/mdoc/Bl/diag.in +++ b/regress/usr.bin/mandoc/mdoc/Bl/diag.in @@ -1,4 +1,4 @@ -.Dd October 28, 2009 +.Dd January 4, 2012 .Dt BL-DIAG 1 .Os OpenBSD .Sh NAME @@ -37,3 +37,13 @@ x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x .It zehn__zehn x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x .El +.Pp +Check that It is not parsed in Bl: +.Bl -diag -compact +.It Nx +.No Nx +.It Ox +.No Ox +.It Fx +.No Fx +.El diff --git a/regress/usr.bin/mandoc/mdoc/Bl/diag.out_ascii b/regress/usr.bin/mandoc/mdoc/Bl/diag.out_ascii index fe667c5f7c1..c6178b94ebe 100644 --- a/regress/usr.bin/mandoc/mdoc/Bl/diag.out_ascii +++ b/regress/usr.bin/mandoc/mdoc/Bl/diag.out_ascii @@ -28,4 +28,9 @@ DDEESSCCRRIIPPTTIIOONN zzeehhnn____zzeehhnn x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x -OpenBSD October 28, 2009 OpenBSD + Check that It is not parsed in Bl: + NNxx NetBSD + OOxx OpenBSD + FFxx FreeBSD + +OpenBSD January 4, 2012 OpenBSD |