summaryrefslogtreecommitdiff
path: root/regress/usr.bin
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2015-04-05 14:43:11 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2015-04-05 14:43:11 +0000
commit7820fd48f908455915ac51bf4e29332af22dedf6 (patch)
tree0b964de3e1a0794b3becbd884950b130734ce46a /regress/usr.bin
parentd15f9fd4fc5d5f0cee2726c17ba5ff016316bcf4 (diff)
Arguments to end macros of broken partial explicit blocks
must go inside the breaking block. For example, in .It Ic cmd Oo .Ar optional_arg Oc Ar mandatory_arg the mandatory_arg is still inside the .It block. Used for example by mutella(1).
Diffstat (limited to 'regress/usr.bin')
-rw-r--r--regress/usr.bin/mandoc/mdoc/break/Makefile10
-rw-r--r--regress/usr.bin/mandoc/mdoc/break/tail.in21
-rw-r--r--regress/usr.bin/mandoc/mdoc/break/tail.out_ascii14
-rw-r--r--regress/usr.bin/mandoc/mdoc/break/tail.out_lint2
4 files changed, 44 insertions, 3 deletions
diff --git a/regress/usr.bin/mandoc/mdoc/break/Makefile b/regress/usr.bin/mandoc/mdoc/break/Makefile
index 1642b209fec..e91e20f80fd 100644
--- a/regress/usr.bin/mandoc/mdoc/break/Makefile
+++ b/regress/usr.bin/mandoc/mdoc/break/Makefile
@@ -1,7 +1,11 @@
-# $OpenBSD: Makefile,v 1.2 2015/02/12 13:52:12 schwarze Exp $
+# $OpenBSD: Makefile,v 1.3 2015/04/05 14:43:10 schwarze Exp $
-REGRESS_TARGETS = brokenbreaker twice two
-LINT_TARGETS = brokenbreaker twice two
+REGRESS_TARGETS = brokenbreaker twice tail two
+LINT_TARGETS = brokenbreaker twice tail two
+
+# It's hard to keep stuff together in next-line scope.
+
+SKIP_TMAN = tail
# groff-1.22.3 defect:
# - non-matching enclosure end macro prints a closing delimiter
diff --git a/regress/usr.bin/mandoc/mdoc/break/tail.in b/regress/usr.bin/mandoc/mdoc/break/tail.in
new file mode 100644
index 00000000000..97b79a21a93
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/break/tail.in
@@ -0,0 +1,21 @@
+.Dd April 5, 2015
+.Dt BREAK-TAIL 1
+.Os OpenBSD
+.Sh NAME
+.Nm break-tail
+.Nd tail arguments on broken blocks
+.Sh DESCRIPTION
+Explicitly broken:
+.Ao ao
+.Bo bo ac
+.Ac bc
+.Bc tail
+.Pp
+Implicitly broken:
+.Aq aq Bo bo eol
+.Bc tail
+.Bl -tag -width Ds -offset indent
+.It it Ao ao ac
+.Ac tail
+list body
+.El
diff --git a/regress/usr.bin/mandoc/mdoc/break/tail.out_ascii b/regress/usr.bin/mandoc/mdoc/break/tail.out_ascii
new file mode 100644
index 00000000000..d50c4a11238
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/break/tail.out_ascii
@@ -0,0 +1,14 @@
+BREAK-TAIL(1) General Commands Manual BREAK-TAIL(1)
+
+NNAAMMEE
+ bbrreeaakk--ttaaiill - tail arguments on broken blocks
+
+DDEESSCCRRIIPPTTIIOONN
+ Explicitly broken: <ao [bo ac> bc] tail
+
+ Implicitly broken: <aq [bo eol>] tail
+
+ it <ao ac> tail
+ list body
+
+OpenBSD April 5, 2015 OpenBSD
diff --git a/regress/usr.bin/mandoc/mdoc/break/tail.out_lint b/regress/usr.bin/mandoc/mdoc/break/tail.out_lint
new file mode 100644
index 00000000000..515d2728366
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/break/tail.out_lint
@@ -0,0 +1,2 @@
+mandoc: tail.in:11:2: WARNING: blocks badly nested: Ao breaks Bo
+mandoc: tail.in:15:2: WARNING: blocks badly nested: Aq breaks Bo