summaryrefslogtreecommitdiff
path: root/regress/usr.bin/mandoc
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2012-07-07 17:48:00 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2012-07-07 17:48:00 +0000
commita92cc53f01f06d021f6b00b9432fabd0ca52dd2d (patch)
treee532f4d57f333289422fb1c7466dd757dbe20388 /regress/usr.bin/mandoc
parent39779bda4f3f19a66dabea31bf0d5c59b3fc5d32 (diff)
Add a test for RS breaking some other block.
Unfortunately, the code triggering the assert fixed in man_macro.c rev. 1.37 must be commented out because groff misformats the invalid input so badly that imitating it really makes no sense.
Diffstat (limited to 'regress/usr.bin/mandoc')
-rw-r--r--regress/usr.bin/mandoc/man/Makefile4
-rw-r--r--regress/usr.bin/mandoc/man/RS/Makefile5
-rw-r--r--regress/usr.bin/mandoc/man/RS/breaking.in23
-rw-r--r--regress/usr.bin/mandoc/man/RS/breaking.out_ascii21
4 files changed, 51 insertions, 2 deletions
diff --git a/regress/usr.bin/mandoc/man/Makefile b/regress/usr.bin/mandoc/man/Makefile
index a18574eaad3..b7641eded6f 100644
--- a/regress/usr.bin/mandoc/man/Makefile
+++ b/regress/usr.bin/mandoc/man/Makefile
@@ -1,6 +1,6 @@
-# $OpenBSD: Makefile,v 1.7 2012/06/02 20:07:09 schwarze Exp $
+# $OpenBSD: Makefile,v 1.8 2012/07/07 17:47:58 schwarze Exp $
-SUBDIR= nf BI EX IP PP TH TP
+SUBDIR= nf BI EX IP PP RS TH TP
ascii groff groff-clean obj-clean tman: _SUBDIRUSE
diff --git a/regress/usr.bin/mandoc/man/RS/Makefile b/regress/usr.bin/mandoc/man/RS/Makefile
new file mode 100644
index 00000000000..6050025fe95
--- /dev/null
+++ b/regress/usr.bin/mandoc/man/RS/Makefile
@@ -0,0 +1,5 @@
+# $OpenBSD: Makefile,v 1.1 2012/07/07 17:47:59 schwarze Exp $
+
+REGRESS_TARGETS = breaking
+
+.include <bsd.regress.mk>
diff --git a/regress/usr.bin/mandoc/man/RS/breaking.in b/regress/usr.bin/mandoc/man/RS/breaking.in
new file mode 100644
index 00000000000..441c5524915
--- /dev/null
+++ b/regress/usr.bin/mandoc/man/RS/breaking.in
@@ -0,0 +1,23 @@
+.TH RS-BREAKING 1 "7 July 2012" OpenBSD
+.SH NAME
+RS-breaking \- some block gets broken by an RS block
+.SH DESCRIPTION
+preceding text
+.TP 4n
+*
+item
+.RS 8n
+indented text
+.RE
+middle text
+.TP 4n
+*
+.RS 8n
+indented text
+.RE
+.\" middle text
+.\" .TP 4n
+.\" .RS 8n
+.\" indented text
+.\" .RE
+trailing text
diff --git a/regress/usr.bin/mandoc/man/RS/breaking.out_ascii b/regress/usr.bin/mandoc/man/RS/breaking.out_ascii
new file mode 100644
index 00000000000..7d5e2e7c29a
--- /dev/null
+++ b/regress/usr.bin/mandoc/man/RS/breaking.out_ascii
@@ -0,0 +1,21 @@
+RS-BREAKING(1) OpenBSD Reference Manual RS-BREAKING(1)
+
+
+
+NNAAMMEE
+ RS-breaking - some block gets broken by an RS block
+
+DDEESSCCRRIIPPTTIIOONN
+ preceding text
+
+ * item
+ indented text
+ middle text
+
+ *
+ indented text
+ trailing text
+
+
+
+OpenBSD 7 July 2012 RS-BREAKING(1)