summaryrefslogtreecommitdiff
path: root/regress/usr.bin
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2016-10-17 19:00:17 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2016-10-17 19:00:17 +0000
commit53ce44b722502cfb73bae5ae5d43ebc2387b954a (patch)
tree4a7efbf69f767febc2ec0f9b53c059e7c29546c2 /regress/usr.bin
parent3d711d2f08206bfad1d6babdc1d004e4cb6854e4 (diff)
test .Bl -tag without -width;
related to mandoc/mdoc_term.c rev. 1.231 and to textproc/groff-1.22.3p3
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/tag.in10
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bl/tag.out_ascii10
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bl/tag.out_lint1
4 files changed, 23 insertions, 2 deletions
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/Makefile b/regress/usr.bin/mandoc/mdoc/Bl/Makefile
index a40a2828d99..3d21a8bebfe 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.30 2016/08/20 14:43:39 schwarze Exp $
+# $OpenBSD: Makefile,v 1.31 2016/10/17 19:00:16 schwarze Exp $
REGRESS_TARGETS = item inset diag ohang bullet dash enum hang tag
REGRESS_TARGETS += column colNoIt extend nested offset secstart
@@ -9,7 +9,7 @@ REGRESS_TARGETS += bareIt bareTa unclosed break breakingIt broken
UTF8_TARGETS = dash
-LINT_TARGETS = column notype badargs
+LINT_TARGETS = column 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/tag.in b/regress/usr.bin/mandoc/mdoc/Bl/tag.in
index b5bfe8094cd..49cc903ec43 100644
--- a/regress/usr.bin/mandoc/mdoc/Bl/tag.in
+++ b/regress/usr.bin/mandoc/mdoc/Bl/tag.in
@@ -127,6 +127,16 @@ text
text
.El
.Pp
+Default width:
+.Bl -tag
+.It tag
+text
+.It long tag
+long text
+.It Sy tag Em with markup
+text
+.El
+.Pp
Indented list:
.Bl -tag -offset 6n -width xxx
.It one
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/tag.out_ascii b/regress/usr.bin/mandoc/mdoc/Bl/tag.out_ascii
index 4280111e89e..0912d4fa02a 100644
--- a/regress/usr.bin/mandoc/mdoc/Bl/tag.out_ascii
+++ b/regress/usr.bin/mandoc/mdoc/Bl/tag.out_ascii
@@ -109,6 +109,16 @@ DDEESSCCRRIIPPTTIIOONN
tag
text
+ Default width:
+
+ tag text
+
+ long tag
+ long text
+
+ ttaagg _w_i_t_h _m_a_r_k_u_p
+ text
+
Indented list:
one first text
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/tag.out_lint b/regress/usr.bin/mandoc/mdoc/Bl/tag.out_lint
new file mode 100644
index 00000000000..01a4a49267c
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Bl/tag.out_lint
@@ -0,0 +1 @@
+mandoc: tag.in:131:2: WARNING: missing -width in -tag list, using 6n: Bl -tag