From b19e09dbeb7e957bca580776d8b3a4651016c904 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Mon, 6 Apr 2020 10:16:17 +0000 Subject: Support manual tagging of .Pp, .Bd, .D1, .Dl, .Bl, and .It. In HTML output, improve the logic for writing inside permalinks: skip them when there is no child content or when there is a risk that the children might contain flow content. --- regress/mdoc/Dl/Makefile | 3 ++- regress/mdoc/Dl/spacing.in | 3 ++- regress/mdoc/Dl/spacing.out_ascii | 2 +- regress/mdoc/Dl/spacing.out_lint | 2 +- regress/mdoc/Dl/spacing.out_markdown | 2 +- regress/mdoc/Dl/spacing.out_tag | 3 +++ 6 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 regress/mdoc/Dl/spacing.out_tag (limited to 'regress/mdoc/Dl') diff --git a/regress/mdoc/Dl/Makefile b/regress/mdoc/Dl/Makefile index bed27d1b..51605be0 100644 --- a/regress/mdoc/Dl/Makefile +++ b/regress/mdoc/Dl/Makefile @@ -1,6 +1,7 @@ -# $OpenBSD: Makefile,v 1.2 2015/02/06 02:04:35 schwarze Exp $ +# $OpenBSD: Makefile,v 1.5 2020/04/06 09:55:49 schwarze Exp $ REGRESS_TARGETS = spacing +TAG_TARGETS = spacing LINT_TARGETS = spacing .include diff --git a/regress/mdoc/Dl/spacing.in b/regress/mdoc/Dl/spacing.in index 6120504c..bda53bbd 100644 --- a/regress/mdoc/Dl/spacing.in +++ b/regress/mdoc/Dl/spacing.in @@ -1,4 +1,4 @@ -.\" $OpenBSD: spacing.in,v 1.4 2017/07/04 14:53:25 schwarze Exp $ +.\" $OpenBSD: spacing.in,v 1.5 2020/04/06 09:55:49 schwarze Exp $ .Dd $Mdocdate$ .Dt DL-SPACING 1 .Os @@ -7,6 +7,7 @@ .Nd spacing in and around one-line literal displays .Sh DESCRIPTION preceding text +.Tg display .Dl spacing in and around one-line literal displays empty display: .Dl diff --git a/regress/mdoc/Dl/spacing.out_ascii b/regress/mdoc/Dl/spacing.out_ascii index c0928ec0..c96eca32 100644 --- a/regress/mdoc/Dl/spacing.out_ascii +++ b/regress/mdoc/Dl/spacing.out_ascii @@ -9,4 +9,4 @@ DDEESSCCRRIIPPTTIIOONN empty display: following text -OpenBSD July 4, 2017 OpenBSD +OpenBSD April 6, 2020 OpenBSD diff --git a/regress/mdoc/Dl/spacing.out_lint b/regress/mdoc/Dl/spacing.out_lint index a18ed583..a31f329f 100644 --- a/regress/mdoc/Dl/spacing.out_lint +++ b/regress/mdoc/Dl/spacing.out_lint @@ -1 +1 @@ -mandoc: spacing.in:12:2: WARNING: empty block: Dl +mandoc: spacing.in:13:2: WARNING: empty block: Dl diff --git a/regress/mdoc/Dl/spacing.out_markdown b/regress/mdoc/Dl/spacing.out_markdown index 08d15972..27dab22c 100644 --- a/regress/mdoc/Dl/spacing.out_markdown +++ b/regress/mdoc/Dl/spacing.out_markdown @@ -14,4 +14,4 @@ empty display: following text -OpenBSD - July 4, 2017 +OpenBSD - April 6, 2020 diff --git a/regress/mdoc/Dl/spacing.out_tag b/regress/mdoc/Dl/spacing.out_tag new file mode 100644 index 00000000..b036279d --- /dev/null +++ b/regress/mdoc/Dl/spacing.out_tag @@ -0,0 +1,3 @@ +NAME 3 +DESCRIPTION 6 +display 8 -- cgit