diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2020-04-18 20:40:10 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2020-04-18 20:40:10 +0000 |
commit | 5384b791222a1766744c362648729972e9a73844 (patch) | |
tree | dca05e2a4298314f19ad80030bdf5c16930950f7 /regress | |
parent | d8e6af26addbffe69059f3b4e263563cdc3f3b53 (diff) | |
download | mandoc-5384b791222a1766744c362648729972e9a73844.tar.gz |
When a .Tg is attached to a paragraph, attach the permalink
to the first word, or the first few words if they are short.
Diffstat (limited to 'regress')
-rw-r--r-- | regress/mdoc/Bd/paragraph.out_html | 8 | ||||
-rw-r--r-- | regress/mdoc/Pp/Makefile | 3 | ||||
-rw-r--r-- | regress/mdoc/Pp/arg.in | 6 | ||||
-rw-r--r-- | regress/mdoc/Pp/arg.out_ascii | 6 | ||||
-rw-r--r-- | regress/mdoc/Pp/arg.out_html | 6 | ||||
-rw-r--r-- | regress/mdoc/Pp/arg.out_lint | 6 | ||||
-rw-r--r-- | regress/mdoc/Pp/arg.out_markdown | 9 | ||||
-rw-r--r-- | regress/mdoc/Pp/arg.out_tag | 4 | ||||
-rw-r--r-- | regress/mdoc/blank/transp.out_markdown | 3 |
9 files changed, 37 insertions, 14 deletions
diff --git a/regress/mdoc/Bd/paragraph.out_html b/regress/mdoc/Bd/paragraph.out_html index f537335e..07a02769 100644 --- a/regress/mdoc/Bd/paragraph.out_html +++ b/regress/mdoc/Bd/paragraph.out_html @@ -1,6 +1,8 @@ -<p class="Pp" id="npara">normal paragraph</p> +<p class="Pp" id="npara"><a class="permalink" href="#npara">normal</a> + paragraph</p> <div class="Bd Pp" id="filled">filled display -<p class="Pp" id="fpara">paragraph in display</p> +<p class="Pp" id="fpara"><a class="permalink" href="#fpara">paragraph</a> in + display</p> </div> back to normal <p class="Pp">another paragraph</p> @@ -9,7 +11,7 @@ back to normal unfilled display <mark id="upara"></mark> -unfilled +<a class="permalink" href="#upara">unfilled</a> paragraph </pre> </div> diff --git a/regress/mdoc/Pp/Makefile b/regress/mdoc/Pp/Makefile index 03d32774..d13a1f3e 100644 --- a/regress/mdoc/Pp/Makefile +++ b/regress/mdoc/Pp/Makefile @@ -1,7 +1,8 @@ -# $OpenBSD: Makefile,v 1.7 2020/04/06 09:55:50 schwarze Exp $ +# $OpenBSD: Makefile,v 1.8 2020/04/18 20:28:46 schwarze Exp $ REGRESS_TARGETS = arg TAG_TARGETS = arg LINT_TARGETS = arg +HTML_TARGETS = arg .include <bsd.regress.mk> diff --git a/regress/mdoc/Pp/arg.in b/regress/mdoc/Pp/arg.in index 70ce93ae..fd8edc92 100644 --- a/regress/mdoc/Pp/arg.in +++ b/regress/mdoc/Pp/arg.in @@ -1,4 +1,4 @@ -.\" $OpenBSD: arg.in,v 1.5 2020/04/06 09:55:50 schwarze Exp $ +.\" $OpenBSD: arg.in,v 1.6 2020/04/18 20:28:46 schwarze Exp $ .Dd $Mdocdate$ .Dt PP-ARG 1 .Os @@ -6,6 +6,8 @@ .Nm Pp-arg .Nd paragraph macro with arguments .Sh DESCRIPTION +BEGINTEST +.Pp line 1 .Tg first .Pp drop this @@ -17,3 +19,5 @@ line 4 .Tg last .Pp final text +.Pp +ENDTEST diff --git a/regress/mdoc/Pp/arg.out_ascii b/regress/mdoc/Pp/arg.out_ascii index 70eebb4d..86ebee94 100644 --- a/regress/mdoc/Pp/arg.out_ascii +++ b/regress/mdoc/Pp/arg.out_ascii @@ -4,6 +4,8 @@ NNAAMMEE PPpp--aarrgg - paragraph macro with arguments DDEESSCCRRIIPPTTIIOONN + BEGINTEST + line 1 line 2 @@ -13,4 +15,6 @@ DDEESSCCRRIIPPTTIIOONN final text -OpenBSD April 6, 2020 OpenBSD + ENDTEST + +OpenBSD April 18, 2020 OpenBSD diff --git a/regress/mdoc/Pp/arg.out_html b/regress/mdoc/Pp/arg.out_html new file mode 100644 index 00000000..c601661c --- /dev/null +++ b/regress/mdoc/Pp/arg.out_html @@ -0,0 +1,6 @@ +<p class="Pp">line 1</p> +<p class="Pp" id="first"><a class="permalink" href="#first">line 2</a> + <br/> + line 3</p> +<p class="Pp">line 4</p> +<p class="Pp" id="last"><a class="permalink" href="#last">final</a> text</p> diff --git a/regress/mdoc/Pp/arg.out_lint b/regress/mdoc/Pp/arg.out_lint index 40d77064..79cf10cb 100644 --- a/regress/mdoc/Pp/arg.out_lint +++ b/regress/mdoc/Pp/arg.out_lint @@ -1,3 +1,3 @@ -mandoc: arg.in:13:5: ERROR: skipping all arguments: br drop this -mandoc: arg.in:15:8: ERROR: skipping excess arguments: sp ... drop this -mandoc: arg.in:11:2: ERROR: skipping all arguments: Pp drop +mandoc: arg.in:15:5: ERROR: skipping all arguments: br drop this +mandoc: arg.in:17:8: ERROR: skipping excess arguments: sp ... drop this +mandoc: arg.in:13:2: ERROR: skipping all arguments: Pp drop diff --git a/regress/mdoc/Pp/arg.out_markdown b/regress/mdoc/Pp/arg.out_markdown index 0b06ac9e..a793f5a1 100644 --- a/regress/mdoc/Pp/arg.out_markdown +++ b/regress/mdoc/Pp/arg.out_markdown @@ -6,6 +6,8 @@ PP-ARG(1) - General Commands Manual # DESCRIPTION +BEGINTEST + line 1 line 2 @@ -13,6 +15,9 @@ line 3 line 4 -final text +final +text + +ENDTEST -OpenBSD - April 6, 2020 +OpenBSD - April 18, 2020 diff --git a/regress/mdoc/Pp/arg.out_tag b/regress/mdoc/Pp/arg.out_tag index 443b1be2..c58db368 100644 --- a/regress/mdoc/Pp/arg.out_tag +++ b/regress/mdoc/Pp/arg.out_tag @@ -1,4 +1,4 @@ NAME 3 DESCRIPTION 6 -first 9 -last 14 +first 11 +last 16 diff --git a/regress/mdoc/blank/transp.out_markdown b/regress/mdoc/blank/transp.out_markdown index 9c8ac825..6c317e46 100644 --- a/regress/mdoc/blank/transp.out_markdown +++ b/regress/mdoc/blank/transp.out_markdown @@ -23,7 +23,8 @@ Pp sp 2v: sp Pp: -Double sp: +Double +sp: br blank: |