diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2017-07-16 17:53:30 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2017-07-16 17:53:30 +0000 |
commit | 107f4de9bfb718cdb4b883ccf82b1d7bc16811ae (patch) | |
tree | b6225b24d9aa182b7c6ac016b1ffa873387e692f /regress | |
parent | c3641eaa8e20610071d3a898ed2b7ba6f009a7ae (diff) |
test -diag -width and -inset -width
Diffstat (limited to 'regress')
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Bl/Makefile | 4 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Bl/diag.in | 9 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Bl/diag.out_ascii | 3 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Bl/diag.out_lint | 4 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Bl/diag.out_markdown | 3 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Bl/inset.in | 6 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Bl/inset.out_lint | 1 |
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 |