From fcd488027f8d6316b641cffa970d451df8a92c76 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sat, 18 Apr 2020 20:40:10 +0000 Subject: When a .Tg is attached to a paragraph, attach the permalink to the first word, or the first few words if they are short. --- regress/mdoc/Bd/paragraph.out_html | 8 +++++--- regress/mdoc/Pp/Makefile | 3 ++- regress/mdoc/Pp/arg.in | 8 ++++++-- regress/mdoc/Pp/arg.out_ascii | 6 +++++- regress/mdoc/Pp/arg.out_html | 6 ++++++ regress/mdoc/Pp/arg.out_lint | 6 +++--- regress/mdoc/Pp/arg.out_markdown | 9 +++++++-- regress/mdoc/Pp/arg.out_tag | 4 ++-- regress/mdoc/blank/transp.out_markdown | 3 ++- 9 files changed, 38 insertions(+), 15 deletions(-) create mode 100644 regress/mdoc/Pp/arg.out_html (limited to 'regress/mdoc') 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 @@ -

normal paragraph

+

+ paragraph

filled display -

paragraph in display

+

in + display

back to normal

another paragraph

@@ -9,7 +11,7 @@ back to normal unfilled display -unfilled + paragraph 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 diff --git a/regress/mdoc/Pp/arg.in b/regress/mdoc/Pp/arg.in index 1e62c80c..542cb759 100644 --- a/regress/mdoc/Pp/arg.in +++ b/regress/mdoc/Pp/arg.in @@ -1,11 +1,13 @@ -.\" $OpenBSD: arg.in,v 1.5 2020/04/06 09:55:50 schwarze Exp $ -.Dd $Mdocdate: April 6 2020 $ +.\" $OpenBSD: arg.in,v 1.6 2020/04/18 20:28:46 schwarze Exp $ +.Dd $Mdocdate: April 18 2020 $ .Dt PP-ARG 1 .Os .Sh NAME .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 @@ +

line 1

+

+
+ line 3

+

line 4

+

text

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: -- cgit v1.2.3-56-ge451