From 6ce685e604d8cbbb837a11d49a49d8dadd3cc4e7 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Fri, 25 Dec 2009 02:00:47 +0000 Subject: Regression test for .Pa below .Bl in the FILES section; still broken in mandoc 1.9.14, fix being sent to kristaps@. Path names (.Pa) are usually underlined, except below .Bl -inset, -hang, -ohang, -tag or -column in the FILES section (yuck). Note that .Bl -bullet is subtly broken in an urelated way: That will need fixing as well before this test can fully succeed. --- regress/usr.bin/mandoc/mdoc/Makefile | 4 +- regress/usr.bin/mandoc/mdoc/Pa/FILES.in | 92 +++++++++++++++++++++++++++++++++ regress/usr.bin/mandoc/mdoc/Pa/Makefile | 6 +++ 3 files changed, 100 insertions(+), 2 deletions(-) create mode 100644 regress/usr.bin/mandoc/mdoc/Pa/FILES.in create mode 100644 regress/usr.bin/mandoc/mdoc/Pa/Makefile (limited to 'regress/usr.bin/mandoc/mdoc') diff --git a/regress/usr.bin/mandoc/mdoc/Makefile b/regress/usr.bin/mandoc/mdoc/Makefile index ff97ad0b793..d6c730491b1 100644 --- a/regress/usr.bin/mandoc/mdoc/Makefile +++ b/regress/usr.bin/mandoc/mdoc/Makefile @@ -1,6 +1,6 @@ -# $OpenBSD: Makefile,v 1.2 2009/12/24 23:21:14 schwarze Exp $ +# $OpenBSD: Makefile,v 1.3 2009/12/25 02:00:46 schwarze Exp $ -SUBDIR+= Bl Fl In Rs +SUBDIR+= Bl Fl In Pa Rs groff groff-clean: _SUBDIRUSE diff --git a/regress/usr.bin/mandoc/mdoc/Pa/FILES.in b/regress/usr.bin/mandoc/mdoc/Pa/FILES.in new file mode 100644 index 00000000000..c20e2b3d166 --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Pa/FILES.in @@ -0,0 +1,92 @@ +.Dd $Mdocdate: December 25 2009 $ +.Dt PA-FILES 1 +.Os +.Sh NAME +.Nm Pa-FILES +.Nd pathnames in the FILES section +.Sh DESCRIPTION +Usually, a +.Pa pathname +will be underlined, even in lists: +.Bl -item +.It +.Pa item +.El +.Bl -dash +.It +.Pa dash +.El +.Bl -bullet +.It +.Pa bullet +.El +.Bl -enum +.It +.Pa enum +.El +.Bl -inset +.It inset Pa key +inset +.Pa text +.El +.Bl -hang +.It hang Pa key +hang +.Pa text +.El +.Bl -ohang +.It ohang Pa key +ohang +.Pa text +.El +.Bl -tag -width Ds +.It tag Pa key +tag +.Pa text +.El +.Bl -column "one" "two" +.It Pa one Ta Pa two +.El +.Sh FILES +Even in the FILES section, a +.Pa pathname +will still be underlined, but not in all list contexts: +.Bl -item +.It +.Pa item +.El +.Bl -dash +.It +.Pa dash +.El +.Bl -bullet +.It +.Pa bullet +.El +.Bl -enum +.It +.Pa enum +.El +.Bl -inset +.It inset Pa key +inset +.Pa text +.El +.Bl -hang +.It hang Pa key +hang +.Pa text +.El +.Bl -ohang +.It ohang Pa key +ohang +.Pa text +.El +.Bl -tag -width Ds +.It tag Pa key +tag +.Pa text +.El +.Bl -column "one" "two" +.It Pa one Ta Pa two +.El diff --git a/regress/usr.bin/mandoc/mdoc/Pa/Makefile b/regress/usr.bin/mandoc/mdoc/Pa/Makefile new file mode 100644 index 00000000000..b8c2f2cc9ec --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Pa/Makefile @@ -0,0 +1,6 @@ +# $OpenBSD: Makefile,v 1.1 2009/12/25 02:00:46 schwarze Exp $ + +REGRESS_TARGETS=FILES +GROFF_TARGETS=FILES + +.include -- cgit v1.2.3