aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-07-16 17:59:43 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-07-16 17:59:43 +0000
commitbff2cfea41125bc88bf1b45dd497c448cd22f95f (patch)
treed7ed8105bac2ba820edac2832c0d3cb769fc06ce /regress
parent0c1b7bd0c0c67e2ee5fee8952d8aa5f5ef33ee28 (diff)
downloadmandoc-bff2cfea41125bc88bf1b45dd497c448cd22f95f.tar.gz
mandoc-bff2cfea41125bc88bf1b45dd497c448cd22f95f.tar.zst
mandoc-bff2cfea41125bc88bf1b45dd497c448cd22f95f.zip
test -diag -width and -inset -width
Diffstat (limited to 'regress')
-rw-r--r--regress/mdoc/Bl/Makefile2
-rw-r--r--regress/mdoc/Bl/diag.in9
-rw-r--r--regress/mdoc/Bl/diag.out_ascii5
-rw-r--r--regress/mdoc/Bl/diag.out_lint4
-rw-r--r--regress/mdoc/Bl/diag.out_markdown5
-rw-r--r--regress/mdoc/Bl/inset.in6
-rw-r--r--regress/mdoc/Bl/inset.out_ascii2
-rw-r--r--regress/mdoc/Bl/inset.out_lint1
-rw-r--r--regress/mdoc/Bl/inset.out_markdown2
9 files changed, 22 insertions, 14 deletions
diff --git a/regress/mdoc/Bl/Makefile b/regress/mdoc/Bl/Makefile
index 7ac8d729..aeb6bd56 100644
--- a/regress/mdoc/Bl/Makefile
+++ b/regress/mdoc/Bl/Makefile
@@ -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/mdoc/Bl/diag.in b/regress/mdoc/Bl/diag.in
index 2874310a..d8ecc075 100644
--- a/regress/mdoc/Bl/diag.in
+++ b/regress/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/mdoc/Bl/diag.out_ascii b/regress/mdoc/Bl/diag.out_ascii
index 8ed0651c..f4cfb777 100644
--- a/regress/mdoc/Bl/diag.out_ascii
+++ b/regress/mdoc/Bl/diag.out_ascii
@@ -29,11 +29,12 @@ 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
OOxx OpenBSD
FFxx FreeBSD
-OpenBSD July 4, 2017 OpenBSD
+OpenBSD July 16, 2017 OpenBSD
diff --git a/regress/mdoc/Bl/diag.out_lint b/regress/mdoc/Bl/diag.out_lint
new file mode 100644
index 00000000..2c8c24e2
--- /dev/null
+++ b/regress/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/mdoc/Bl/diag.out_markdown b/regress/mdoc/Bl/diag.out_markdown
index 22c4aed0..aa8e780a 100644
--- a/regress/mdoc/Bl/diag.out_markdown
+++ b/regress/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:
@@ -42,4 +43,4 @@ OpenBSD
Fx
FreeBSD
-OpenBSD - July 4, 2017
+OpenBSD - July 16, 2017
diff --git a/regress/mdoc/Bl/inset.in b/regress/mdoc/Bl/inset.in
index 557a48a9..122e531b 100644
--- a/regress/mdoc/Bl/inset.in
+++ b/regress/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/mdoc/Bl/inset.out_ascii b/regress/mdoc/Bl/inset.out_ascii
index 51320009..509747cb 100644
--- a/regress/mdoc/Bl/inset.out_ascii
+++ b/regress/mdoc/Bl/inset.out_ascii
@@ -34,4 +34,4 @@ DDEESSCCRRIIPPTTIIOONN
a b
-OpenBSD July 4, 2017 OpenBSD
+OpenBSD July 16, 2017 OpenBSD
diff --git a/regress/mdoc/Bl/inset.out_lint b/regress/mdoc/Bl/inset.out_lint
new file mode 100644
index 00000000..32b4aafd
--- /dev/null
+++ b/regress/mdoc/Bl/inset.out_lint
@@ -0,0 +1 @@
+mandoc: inset.in:42:12: WARNING: skipping -width argument: Bl -inset
diff --git a/regress/mdoc/Bl/inset.out_markdown b/regress/mdoc/Bl/inset.out_markdown
index 5dcf3846..da973141 100644
--- a/regress/mdoc/Bl/inset.out_markdown
+++ b/regress/mdoc/Bl/inset.out_markdown
@@ -39,4 +39,4 @@ b
a &zwnj;
b
-OpenBSD - July 4, 2017
+OpenBSD - July 16, 2017