summaryrefslogtreecommitdiffstats
path: root/regress/mdoc/Dl
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2020-04-19 16:36:16 +0000
committerIngo Schwarze <schwarze@openbsd.org>2020-04-19 16:36:16 +0000
commit25b07ce44ad2c1d5e59d80a7abb5385c5d62169d (patch)
treea8e00aace70544f81d2501a34aaf190b7d1d6b33 /regress/mdoc/Dl
parenta7eb58f8be5552047bb2594077d548bec819a6d5 (diff)
downloadmandoc-25b07ce44ad2c1d5e59d80a7abb5385c5d62169d.tar.gz
When .Bd, .D1, or .Dl is tagged, attach the permalink
to the first few letters, similar to what was earlier done for .Pp.
Diffstat (limited to 'regress/mdoc/Dl')
-rw-r--r--regress/mdoc/Dl/Makefile3
-rw-r--r--regress/mdoc/Dl/spacing.in8
-rw-r--r--regress/mdoc/Dl/spacing.out_ascii6
-rw-r--r--regress/mdoc/Dl/spacing.out_html8
-rw-r--r--regress/mdoc/Dl/spacing.out_lint2
-rw-r--r--regress/mdoc/Dl/spacing.out_markdown8
-rw-r--r--regress/mdoc/Dl/spacing.out_tag2
7 files changed, 30 insertions, 7 deletions
diff --git a/regress/mdoc/Dl/Makefile b/regress/mdoc/Dl/Makefile
index 51605be0..33a7b034 100644
--- a/regress/mdoc/Dl/Makefile
+++ b/regress/mdoc/Dl/Makefile
@@ -1,7 +1,8 @@
-# $OpenBSD: Makefile,v 1.5 2020/04/06 09:55:49 schwarze Exp $
+# $OpenBSD: Makefile,v 1.6 2020/04/19 16:26:11 schwarze Exp $
REGRESS_TARGETS = spacing
TAG_TARGETS = spacing
LINT_TARGETS = spacing
+HTML_TARGETS = spacing
.include <bsd.regress.mk>
diff --git a/regress/mdoc/Dl/spacing.in b/regress/mdoc/Dl/spacing.in
index bda53bbd..62252578 100644
--- a/regress/mdoc/Dl/spacing.in
+++ b/regress/mdoc/Dl/spacing.in
@@ -1,4 +1,4 @@
-.\" $OpenBSD: spacing.in,v 1.5 2020/04/06 09:55:49 schwarze Exp $
+.\" $OpenBSD: spacing.in,v 1.6 2020/04/19 16:26:11 schwarze Exp $
.Dd $Mdocdate$
.Dt DL-SPACING 1
.Os
@@ -6,9 +6,15 @@
.Nm Dl-spacing
.Nd spacing in and around one-line literal displays
.Sh DESCRIPTION
+BEGINTEST
+.Pp
preceding text
.Tg display
.Dl spacing in and around one-line literal displays
empty display:
.Dl
following text
+.br
+ENDTEST
+.br
+end of file
diff --git a/regress/mdoc/Dl/spacing.out_ascii b/regress/mdoc/Dl/spacing.out_ascii
index c96eca32..9d7f07fd 100644
--- a/regress/mdoc/Dl/spacing.out_ascii
+++ b/regress/mdoc/Dl/spacing.out_ascii
@@ -4,9 +4,13 @@ NNAAMMEE
DDll--ssppaacciinngg - spacing in and around one-line literal displays
DDEESSCCRRIIPPTTIIOONN
+ BEGINTEST
+
preceding text
spacing in and around one-line literal displays
empty display:
following text
+ ENDTEST
+ end of file
-OpenBSD April 6, 2020 OpenBSD
+OpenBSD April 19, 2020 OpenBSD
diff --git a/regress/mdoc/Dl/spacing.out_html b/regress/mdoc/Dl/spacing.out_html
new file mode 100644
index 00000000..122f4f69
--- /dev/null
+++ b/regress/mdoc/Dl/spacing.out_html
@@ -0,0 +1,8 @@
+<p class="Pp">preceding text</p>
+<div class="Bd
+ Bd-indent" id="display"><code class="Li"><a class="permalink" href="#display">spacing</a>
+ in and around one-line literal displays</code></div>
+empty display:
+<div class="Bd Bd-indent"><code class="Li"></code></div>
+following text
+<br/>
diff --git a/regress/mdoc/Dl/spacing.out_lint b/regress/mdoc/Dl/spacing.out_lint
index a31f329f..ff047dc6 100644
--- a/regress/mdoc/Dl/spacing.out_lint
+++ b/regress/mdoc/Dl/spacing.out_lint
@@ -1 +1 @@
-mandoc: spacing.in:13:2: WARNING: empty block: Dl
+mandoc: spacing.in:15:2: WARNING: empty block: Dl
diff --git a/regress/mdoc/Dl/spacing.out_markdown b/regress/mdoc/Dl/spacing.out_markdown
index 27dab22c..4a6d9302 100644
--- a/regress/mdoc/Dl/spacing.out_markdown
+++ b/regress/mdoc/Dl/spacing.out_markdown
@@ -6,12 +6,16 @@ DL-SPACING(1) - General Commands Manual
# DESCRIPTION
+BEGINTEST
+
preceding text
spacing in and around one-line literal displays
empty display:
-following text
+following text
+ENDTEST
+end of file
-OpenBSD - April 6, 2020
+OpenBSD - April 19, 2020
diff --git a/regress/mdoc/Dl/spacing.out_tag b/regress/mdoc/Dl/spacing.out_tag
index b036279d..73ab507a 100644
--- a/regress/mdoc/Dl/spacing.out_tag
+++ b/regress/mdoc/Dl/spacing.out_tag
@@ -1,3 +1,3 @@
NAME 3
DESCRIPTION 6
-display 8
+display 10