summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2009-12-25 02:00:47 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2009-12-25 02:00:47 +0000
commit6ce685e604d8cbbb837a11d49a49d8dadd3cc4e7 (patch)
tree8f38c74afa1b966862da1dfe331b85d8b079b94a
parentb1bb18f88548ee622f0a38664f1e67028715389f (diff)
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.
-rw-r--r--regress/usr.bin/mandoc/mdoc/Makefile4
-rw-r--r--regress/usr.bin/mandoc/mdoc/Pa/FILES.in92
-rw-r--r--regress/usr.bin/mandoc/mdoc/Pa/Makefile6
3 files changed, 100 insertions, 2 deletions
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 <bsd.regress.mk>