summaryrefslogtreecommitdiff
path: root/regress/usr.bin
diff options
context:
space:
mode:
Diffstat (limited to 'regress/usr.bin')
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bl/Makefile4
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bl/diag.in9
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bl/diag.out_ascii3
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bl/diag.out_lint4
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bl/diag.out_markdown3
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bl/inset.in6
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bl/inset.out_lint1
7 files changed, 19 insertions, 11 deletions
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/Makefile b/regress/usr.bin/mandoc/mdoc/Bl/Makefile
index 6c62615b8c0..deda0bf7381 100644
--- a/regress/usr.bin/mandoc/mdoc/Bl/Makefile
+++ b/regress/usr.bin/mandoc/mdoc/Bl/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.38 2017/06/29 15:21:46 schwarze Exp $
+# $OpenBSD: Makefile,v 1.39 2017/07/16 17:53:29 schwarze Exp $
REGRESS_TARGETS = item inset diag ohang bullet dash enum hang tag
REGRESS_TARGETS += column column_nogroff colNoIt
@@ -10,7 +10,7 @@ REGRESS_TARGETS += bareIt bareTa unclosed break breakingIt breakingTa broken
UTF8_TARGETS = dash
-LINT_TARGETS = column column_nogroff notype badargs tag
+LINT_TARGETS = inset diag column column_nogroff notype badargs tag
LINT_TARGETS += empty noIt emptyhead emptytag emptyitem
LINT_TARGETS += bareIt bareTa break breakingIt broken
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/diag.in b/regress/usr.bin/mandoc/mdoc/Bl/diag.in
index 2874310a1fc..d8ecc0752ec 100644
--- a/regress/usr.bin/mandoc/mdoc/Bl/diag.in
+++ b/regress/usr.bin/mandoc/mdoc/Bl/diag.in
@@ -1,5 +1,5 @@
-.\" $OpenBSD: diag.in,v 1.6 2017/07/04 14:53:24 schwarze Exp $
-.Dd $Mdocdate: July 4 2017 $
+.\" $OpenBSD: diag.in,v 1.7 2017/07/16 17:53:29 schwarze Exp $
+.Dd $Mdocdate: July 16 2017 $
.Dt BL-DIAG 1
.Os
.Sh NAME
@@ -38,10 +38,11 @@ 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
-.Bl -diag
+.Bl -diag -width 10n
.It This is a very long text contained in the diag item head, it is \
so long that it overruns the line -
-and here comes the item body.
+and here comes the item body,
+which is also long enough to break the line again.
.El
.Pp
Check that It is not parsed in Bl:
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/diag.out_ascii b/regress/usr.bin/mandoc/mdoc/Bl/diag.out_ascii
index 8ed0651cb92..d0bd058811f 100644
--- a/regress/usr.bin/mandoc/mdoc/Bl/diag.out_ascii
+++ b/regress/usr.bin/mandoc/mdoc/Bl/diag.out_ascii
@@ -29,7 +29,8 @@ DDEESSCCRRIIPPTTIIOONN
x x x x x x x x x
TThhiiss iiss aa vveerryy lloonngg tteexxtt ccoonnttaaiinneedd iinn tthhee ddiiaagg iitteemm hheeaadd,, iitt iiss ssoo lloonngg
- tthhaatt iitt oovveerrrruunnss tthhee lliinnee -- and here comes the item body.
+ tthhaatt iitt oovveerrrruunnss tthhee lliinnee -- and here comes the item body, which is also
+ long enough to break the line again.
Check that It is not parsed in Bl:
NNxx NetBSD
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/diag.out_lint b/regress/usr.bin/mandoc/mdoc/Bl/diag.out_lint
new file mode 100644
index 00000000000..2c8c24e20c1
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Bl/diag.out_lint
@@ -0,0 +1,4 @@
+mandoc: diag.in:51:2: WARNING: skipping empty macro: No
+mandoc: diag.in:53:2: WARNING: skipping empty macro: No
+mandoc: diag.in:55:2: WARNING: skipping empty macro: No
+mandoc: diag.in:41:11: WARNING: skipping -width argument: Bl -diag
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/diag.out_markdown b/regress/usr.bin/mandoc/mdoc/Bl/diag.out_markdown
index 22c4aed07cd..27ce7b6db8e 100644
--- a/regress/usr.bin/mandoc/mdoc/Bl/diag.out_markdown
+++ b/regress/usr.bin/mandoc/mdoc/Bl/diag.out_markdown
@@ -31,7 +31,8 @@ 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
This is a very long text contained in the diag item head, it is so long that it overruns the line -
-and here comes the item body.
+and here comes the item body,
+which is also long enough to break the line again.
Check that It is not parsed in Bl:
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/inset.in b/regress/usr.bin/mandoc/mdoc/Bl/inset.in
index 557a48a9d11..122e531bb7c 100644
--- a/regress/usr.bin/mandoc/mdoc/Bl/inset.in
+++ b/regress/usr.bin/mandoc/mdoc/Bl/inset.in
@@ -1,5 +1,5 @@
-.\" $OpenBSD: inset.in,v 1.5 2017/07/04 14:53:24 schwarze Exp $
-.Dd $Mdocdate: July 4 2017 $
+.\" $OpenBSD: inset.in,v 1.6 2017/07/16 17:53:29 schwarze Exp $
+.Dd $Mdocdate: July 16 2017 $
.Dt BL-INSET 1
.Os
.Sh NAME
@@ -39,7 +39,7 @@ 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
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
.\" Trailing white space in the head.
-.Bl -inset
+.Bl -inset -width 10n
.It "a"
b
.It "a "
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/inset.out_lint b/regress/usr.bin/mandoc/mdoc/Bl/inset.out_lint
new file mode 100644
index 00000000000..32b4aafd0fe
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Bl/inset.out_lint
@@ -0,0 +1 @@
+mandoc: inset.in:42:12: WARNING: skipping -width argument: Bl -inset