summaryrefslogtreecommitdiff
path: root/regress/usr.bin
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2013-05-19 21:40:19 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2013-05-19 21:40:19 +0000
commitbffb353f5aa0b007f5d26ac002592a8729f538a6 (patch)
tree27a0ce26b82c84e74dd434169cdb3b7148c372e2 /regress/usr.bin
parent34c372a3097ff834e96ec1755a592aff3963fe29 (diff)
Support .Bl -offset in -mdoc -Tman.
Issue found when Thomas Klausner <wiz at NetBSD dot org> made me look at the manuals of his http://www.nih.at/libzip library.
Diffstat (limited to 'regress/usr.bin')
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bl/nested.in11
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bl/nested.out_ascii9
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bl/tag.in10
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bl/tag.out_ascii8
4 files changed, 34 insertions, 4 deletions
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/nested.in b/regress/usr.bin/mandoc/mdoc/Bl/nested.in
index c02a433230e..380e2e623b7 100644
--- a/regress/usr.bin/mandoc/mdoc/Bl/nested.in
+++ b/regress/usr.bin/mandoc/mdoc/Bl/nested.in
@@ -1,4 +1,4 @@
-.Dd December 31, 2012
+.Dd May 19, 2013
.Dt BL-NESTED 1
.Os OpenBSD
.Sh NAME
@@ -71,4 +71,13 @@ inner text
.El
outer text
.El
+.Bl -tag -width 4n -offset 3n
+.It outer tag (indented 3n)
+outer text
+.Bl -tag -width 4n -offset 6n
+.It inner tag (indented 6n)
+inner text
+.El
+outer text
+.El
final text
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/nested.out_ascii b/regress/usr.bin/mandoc/mdoc/Bl/nested.out_ascii
index c4185625125..e866f16f5f1 100644
--- a/regress/usr.bin/mandoc/mdoc/Bl/nested.out_ascii
+++ b/regress/usr.bin/mandoc/mdoc/Bl/nested.out_ascii
@@ -42,6 +42,13 @@ DDEESSCCRRIIPPTTIIOONN
inner tag
inner text
outer text
+
+ outer tag (indented 3n)
+ outer text
+
+ inner tag (indented 6n)
+ inner text
+ outer text
final text
-OpenBSD December 31, 2012 OpenBSD
+OpenBSD May 19, 2013 OpenBSD
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/tag.in b/regress/usr.bin/mandoc/mdoc/Bl/tag.in
index aa363567be0..bbf12de82d7 100644
--- a/regress/usr.bin/mandoc/mdoc/Bl/tag.in
+++ b/regress/usr.bin/mandoc/mdoc/Bl/tag.in
@@ -1,4 +1,4 @@
-.Dd December 31, 2012
+.Dd May 19, 2013
.Dt BL-TAG 1
.Os OpenBSD
.Sh NAME
@@ -58,6 +58,14 @@ text
text
.El
.Pp
+Indented list:
+.Bl -tag -offset 6n -width xxx
+.It one
+first text
+.It two
+second text
+.El
+.Pp
Embedded paragraph:
.Bl -tag -width Ds
.It tag
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/tag.out_ascii b/regress/usr.bin/mandoc/mdoc/Bl/tag.out_ascii
index 4de81918454..930c7281e8b 100644
--- a/regress/usr.bin/mandoc/mdoc/Bl/tag.out_ascii
+++ b/regress/usr.bin/mandoc/mdoc/Bl/tag.out_ascii
@@ -47,10 +47,16 @@ DDEESSCCRRIIPPTTIIOONN
tag text
+ Indented list:
+
+ one first text
+
+ two second text
+
Embedded paragraph:
tag first paragraph
second paragraph
-OpenBSD December 31, 2012 OpenBSD
+OpenBSD May 19, 2013 OpenBSD