summaryrefslogtreecommitdiff
path: root/regress/usr.bin/mandoc/mdoc
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2020-02-27 01:26:00 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2020-02-27 01:26:00 +0000
commit6f8aadfc69810a5c3408b4cae48f85969daf651c (patch)
tree451d059ba46667c14eff8b88012de8605c885723 /regress/usr.bin/mandoc/mdoc
parentd1bbe4f0575c40545245502a43df4e9910062b65 (diff)
Introduce the concept of nodes that are semantically transparent:
they are skipped when looking for previous or following high-level macros. Examples include roff(7) .ft, .ll, and .ta, mdoc(7) .Sm and .Tg, and man(7) .DT and .PD. Use this concept for a variety of improved decisions in various validators and formatters. While here, * remove a few const qualifiers on struct arguments that caused trouble; * get rid of some more Yoda notation in the vicinity; * and apply some other stylistic improvements in the vicinity. I found this class of issues while considering .Tg patches from kn@.
Diffstat (limited to 'regress/usr.bin/mandoc/mdoc')
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bd/spacing.in10
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bd/spacing.out_ascii6
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bd/spacing.out_markdown8
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bl/Makefile4
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bl/noIt.out_lint1
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bl/vert.in15
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bl/vert.out_ascii10
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bl/vert.out_markdown15
-rw-r--r--regress/usr.bin/mandoc/mdoc/Fl/Makefile4
-rw-r--r--regress/usr.bin/mandoc/mdoc/Fl/spacing.in42
-rw-r--r--regress/usr.bin/mandoc/mdoc/Fl/spacing.out_ascii26
-rw-r--r--regress/usr.bin/mandoc/mdoc/Fl/spacing.out_markdown42
-rw-r--r--regress/usr.bin/mandoc/mdoc/Fo/Makefile4
-rw-r--r--regress/usr.bin/mandoc/mdoc/Fo/transp.in23
-rw-r--r--regress/usr.bin/mandoc/mdoc/Fo/transp.out_ascii13
-rw-r--r--regress/usr.bin/mandoc/mdoc/Fo/transp.out_markdown19
-rw-r--r--regress/usr.bin/mandoc/mdoc/Rs/Makefile4
-rw-r--r--regress/usr.bin/mandoc/mdoc/Rs/transp.in36
-rw-r--r--regress/usr.bin/mandoc/mdoc/Rs/transp.out_ascii16
-rw-r--r--regress/usr.bin/mandoc/mdoc/Rs/transp.out_markdown27
-rw-r--r--regress/usr.bin/mandoc/mdoc/Sh/Makefile5
-rw-r--r--regress/usr.bin/mandoc/mdoc/Sh/transp.in11
-rw-r--r--regress/usr.bin/mandoc/mdoc/Sh/transp.out_ascii10
-rw-r--r--regress/usr.bin/mandoc/mdoc/Sh/transp.out_markdown13
-rw-r--r--regress/usr.bin/mandoc/mdoc/Sm/badarg.out_markdown3
-rw-r--r--regress/usr.bin/mandoc/mdoc/Sm/twoarg.out_markdown6
-rw-r--r--regress/usr.bin/mandoc/mdoc/blank/Makefile6
-rw-r--r--regress/usr.bin/mandoc/mdoc/blank/transp.in77
-rw-r--r--regress/usr.bin/mandoc/mdoc/blank/transp.out_ascii48
-rw-r--r--regress/usr.bin/mandoc/mdoc/blank/transp.out_lint19
-rw-r--r--regress/usr.bin/mandoc/mdoc/blank/transp.out_markdown44
31 files changed, 544 insertions, 23 deletions
diff --git a/regress/usr.bin/mandoc/mdoc/Bd/spacing.in b/regress/usr.bin/mandoc/mdoc/Bd/spacing.in
index b29f6da42d5..dfe86387bdb 100644
--- a/regress/usr.bin/mandoc/mdoc/Bd/spacing.in
+++ b/regress/usr.bin/mandoc/mdoc/Bd/spacing.in
@@ -1,5 +1,5 @@
-.\" $OpenBSD: spacing.in,v 1.3 2017/07/04 14:53:24 schwarze Exp $
-.Dd $Mdocdate: July 4 2017 $
+.\" $OpenBSD: spacing.in,v 1.4 2020/02/27 01:25:58 schwarze Exp $
+.Dd $Mdocdate: February 27 2020 $
.Dt BD-SPACING 1
.Os
.Sh NAME
@@ -15,3 +15,9 @@ text between displays
compact display block
.Ed
following text
+.Sh EXAMPLES
+.Tg word
+.Bd -literal -offset indent
+text
+.Ed
+end of file
diff --git a/regress/usr.bin/mandoc/mdoc/Bd/spacing.out_ascii b/regress/usr.bin/mandoc/mdoc/Bd/spacing.out_ascii
index 8efa8b30d4f..e965647c522 100644
--- a/regress/usr.bin/mandoc/mdoc/Bd/spacing.out_ascii
+++ b/regress/usr.bin/mandoc/mdoc/Bd/spacing.out_ascii
@@ -11,4 +11,8 @@ DDEESSCCRRIIPPTTIIOONN
compact display block
following text
-OpenBSD July 4, 2017 OpenBSD
+EEXXAAMMPPLLEESS
+ text
+ end of file
+
+OpenBSD February 27, 2020 OpenBSD
diff --git a/regress/usr.bin/mandoc/mdoc/Bd/spacing.out_markdown b/regress/usr.bin/mandoc/mdoc/Bd/spacing.out_markdown
index 766dda3b46e..a03c20efb51 100644
--- a/regress/usr.bin/mandoc/mdoc/Bd/spacing.out_markdown
+++ b/regress/usr.bin/mandoc/mdoc/Bd/spacing.out_markdown
@@ -16,4 +16,10 @@ text between displays
following text
-OpenBSD - July 4, 2017
+# EXAMPLES
+
+ text
+
+end of file
+
+OpenBSD - February 27, 2020
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/Makefile b/regress/usr.bin/mandoc/mdoc/Bl/Makefile
index 8fde5d9e07e..519c4055901 100644
--- a/regress/usr.bin/mandoc/mdoc/Bl/Makefile
+++ b/regress/usr.bin/mandoc/mdoc/Bl/Makefile
@@ -1,8 +1,8 @@
-# $OpenBSD: Makefile,v 1.40 2018/12/21 16:58:49 schwarze Exp $
+# $OpenBSD: Makefile,v 1.41 2020/02/27 01:25:58 schwarze Exp $
REGRESS_TARGETS = item inset diag ohang bullet dash enum hang tag
REGRESS_TARGETS += column column_nogroff colNoIt
-REGRESS_TARGETS += esc extend nested offset secstart
+REGRESS_TARGETS += esc extend nested offset secstart vert
REGRESS_TARGETS += notype multitype badargs
REGRESS_TARGETS += empty noIt emptyhead emptytag emptyitem multitag
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/noIt.out_lint b/regress/usr.bin/mandoc/mdoc/Bl/noIt.out_lint
index 03a89cc5398..7c6803f330e 100644
--- a/regress/usr.bin/mandoc/mdoc/Bl/noIt.out_lint
+++ b/regress/usr.bin/mandoc/mdoc/Bl/noIt.out_lint
@@ -6,3 +6,4 @@ mandoc: noIt.in:18:2: WARNING: moving content out of list: Em
mandoc: noIt.in:18:10: WARNING: moving content out of list: Sy
mandoc: noIt.in:18:19: WARNING: moving content out of list: Em
mandoc: noIt.in:24:1: WARNING: moving content out of list: text
+mandoc: noIt.in:23:2: WARNING: empty block: Bl
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/vert.in b/regress/usr.bin/mandoc/mdoc/Bl/vert.in
new file mode 100644
index 00000000000..b17b897c9b2
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Bl/vert.in
@@ -0,0 +1,15 @@
+.\" $OpenBSD: vert.in,v 1.1 2020/02/27 01:25:58 schwarze Exp $
+.Dd $Mdocdate: February 27 2020 $
+.Dt BL-VERT 1
+.Os
+.Sh NAME
+.Nm Bl-vert
+.Nd vertical spacing before lists
+.Sh DESCRIPTION
+.Bl -tag -width 7n
+.Sm off
+.It Fl o Ar file
+.Sm on
+text
+.El
+end of file
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/vert.out_ascii b/regress/usr.bin/mandoc/mdoc/Bl/vert.out_ascii
new file mode 100644
index 00000000000..24a2c565cdc
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Bl/vert.out_ascii
@@ -0,0 +1,10 @@
+BL-VERT(1) General Commands Manual BL-VERT(1)
+
+NNAAMMEE
+ BBll--vveerrtt - vertical spacing before lists
+
+DDEESSCCRRIIPPTTIIOONN
+ --oo_f_i_l_e text
+ end of file
+
+OpenBSD February 27, 2020 OpenBSD
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/vert.out_markdown b/regress/usr.bin/mandoc/mdoc/Bl/vert.out_markdown
new file mode 100644
index 00000000000..ed741b402a7
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Bl/vert.out_markdown
@@ -0,0 +1,15 @@
+BL-VERT(1) - General Commands Manual
+
+# NAME
+
+**Bl-vert** - vertical spacing before lists
+
+# DESCRIPTION
+
+**-o**&zwnj;*file*
+
+> text
+
+end of file
+
+OpenBSD - February 27, 2020
diff --git a/regress/usr.bin/mandoc/mdoc/Fl/Makefile b/regress/usr.bin/mandoc/mdoc/Fl/Makefile
index ea9ed630c7f..e4e4a6bc958 100644
--- a/regress/usr.bin/mandoc/mdoc/Fl/Makefile
+++ b/regress/usr.bin/mandoc/mdoc/Fl/Makefile
@@ -1,6 +1,6 @@
-# $OpenBSD: Makefile,v 1.12 2017/06/10 01:48:31 schwarze Exp $
+# $OpenBSD: Makefile,v 1.13 2020/02/27 01:25:58 schwarze Exp $
-REGRESS_TARGETS = noarg multiarg parsed punct font
+REGRESS_TARGETS = font multiarg noarg parsed punct spacing
LINT_TARGETS = punct
.include <bsd.regress.mk>
diff --git a/regress/usr.bin/mandoc/mdoc/Fl/spacing.in b/regress/usr.bin/mandoc/mdoc/Fl/spacing.in
new file mode 100644
index 00000000000..6b59478f77d
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Fl/spacing.in
@@ -0,0 +1,42 @@
+.\" $OpenBSD: spacing.in,v 1.1 2020/02/27 01:25:58 schwarze Exp $
+.Dd $Mdocdate: February 27 2020 $
+.Dt FL-SPACING 1
+.Os
+.Sh NAME
+.Nm Fl-spacing
+.Nd horizontal spacing after flag macros
+.Sh DESCRIPTION
+with argument:
+.Fl a
+.Pp
+no next node:
+.Xo Fl Xc suffix
+.Pp
+transparent next node only:
+.Xo Fl
+.Tg transparent1
+.Xc suffix
+.Pp
+following text:
+.Fl
+text
+.Pp
+text after transparent node on the same line:
+.Fl Es < >
+text
+.Pp
+following macro on the same line:
+.Fl Em word
+.Pp
+following macro on the next line:
+.Fl
+.Em word
+.Pp
+following macro on the next line after transparent node on the same line:
+.Fl Es < >
+.Em word
+.Pp
+following macro after transparent node on the next line:
+.Fl
+.Tg transparent3
+.Em word
diff --git a/regress/usr.bin/mandoc/mdoc/Fl/spacing.out_ascii b/regress/usr.bin/mandoc/mdoc/Fl/spacing.out_ascii
new file mode 100644
index 00000000000..c96c3923887
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Fl/spacing.out_ascii
@@ -0,0 +1,26 @@
+FL-SPACING(1) General Commands Manual FL-SPACING(1)
+
+NNAAMMEE
+ FFll--ssppaacciinngg - horizontal spacing after flag macros
+
+DDEESSCCRRIIPPTTIIOONN
+ with argument: --aa
+
+ no next node: -- suffix
+
+ transparent next node only: -- suffix
+
+ following text: -- text
+
+ text after transparent node on the same line: -- text
+
+ following macro on the same line: --_w_o_r_d
+
+ following macro on the next line: -- _w_o_r_d
+
+ following macro on the next line after transparent node on the same line:
+ -- _w_o_r_d
+
+ following macro after transparent node on the next line: -- _w_o_r_d
+
+OpenBSD February 27, 2020 OpenBSD
diff --git a/regress/usr.bin/mandoc/mdoc/Fl/spacing.out_markdown b/regress/usr.bin/mandoc/mdoc/Fl/spacing.out_markdown
new file mode 100644
index 00000000000..a46a44e36a9
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Fl/spacing.out_markdown
@@ -0,0 +1,42 @@
+FL-SPACING(1) - General Commands Manual
+
+# NAME
+
+**Fl-spacing** - horizontal spacing after flag macros
+
+# DESCRIPTION
+
+with argument:
+**-a**
+
+no next node:
+**-** suffix
+
+transparent next node only:
+**-**
+suffix
+
+following text:
+**-**
+text
+
+text after transparent node on the same line:
+**-**
+text
+
+following macro on the same line:
+**-**&zwnj;*word*
+
+following macro on the next line:
+**-**
+*word*
+
+following macro on the next line after transparent node on the same line:
+**-**
+*word*
+
+following macro after transparent node on the next line:
+**-**
+*word*
+
+OpenBSD - February 27, 2020
diff --git a/regress/usr.bin/mandoc/mdoc/Fo/Makefile b/regress/usr.bin/mandoc/mdoc/Fo/Makefile
index 34be618d7cc..7770e9a1921 100644
--- a/regress/usr.bin/mandoc/mdoc/Fo/Makefile
+++ b/regress/usr.bin/mandoc/mdoc/Fo/Makefile
@@ -1,7 +1,7 @@
-# $OpenBSD: Makefile,v 1.16 2017/06/10 01:48:31 schwarze Exp $
+# $OpenBSD: Makefile,v 1.17 2020/02/27 01:25:58 schwarze Exp $
REGRESS_TARGETS = basic break eos font noarg nohead
-REGRESS_TARGETS += obsolete punct section warn
+REGRESS_TARGETS += obsolete punct section transp warn
LINT_TARGETS = noarg nohead obsolete punct warn
# groff-1.22.3 defects:
diff --git a/regress/usr.bin/mandoc/mdoc/Fo/transp.in b/regress/usr.bin/mandoc/mdoc/Fo/transp.in
new file mode 100644
index 00000000000..3ca83287234
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Fo/transp.in
@@ -0,0 +1,23 @@
+.\" $OpenBSD: transp.in,v 1.1 2020/02/27 01:25:58 schwarze Exp $
+.Dd $Mdocdate: February 27 2020 $
+.Dt FO-TRANSP 1
+.Os
+.Sh NAME
+.Nm Fo-transp
+.Nd transparent nodes among function argument macros
+.Sh SYNOPSIS
+.Ft type
+.Fo func
+.Fa one
+.Tg one
+.Fa two
+.Tg two
+.Fc
+.Sh DESCRIPTION
+.Ft type
+.Fo func
+.Fa one
+.Tg one
+.Fa two
+.Tg two
+.Fc
diff --git a/regress/usr.bin/mandoc/mdoc/Fo/transp.out_ascii b/regress/usr.bin/mandoc/mdoc/Fo/transp.out_ascii
new file mode 100644
index 00000000000..fb0c37fcbba
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Fo/transp.out_ascii
@@ -0,0 +1,13 @@
+FO-TRANSP(1) General Commands Manual FO-TRANSP(1)
+
+NNAAMMEE
+ FFoo--ttrraannsspp - transparent nodes among function argument macros
+
+SSYYNNOOPPSSIISS
+ _t_y_p_e
+ ffuunncc(_o_n_e, _t_w_o);
+
+DDEESSCCRRIIPPTTIIOONN
+ _t_y_p_e ffuunncc(_o_n_e, _t_w_o)
+
+OpenBSD February 27, 2020 OpenBSD
diff --git a/regress/usr.bin/mandoc/mdoc/Fo/transp.out_markdown b/regress/usr.bin/mandoc/mdoc/Fo/transp.out_markdown
new file mode 100644
index 00000000000..237d7819321
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Fo/transp.out_markdown
@@ -0,0 +1,19 @@
+FO-TRANSP(1) - General Commands Manual
+
+# NAME
+
+**Fo-transp** - transparent nodes among function argument macros
+
+# SYNOPSIS
+
+*type*
+**func**(*one*,
+*two*);
+
+# DESCRIPTION
+
+*type*
+**func**(*one*,
+*two*)
+
+OpenBSD - February 27, 2020
diff --git a/regress/usr.bin/mandoc/mdoc/Rs/Makefile b/regress/usr.bin/mandoc/mdoc/Rs/Makefile
index 2881b87426e..e6e3e1bc9f6 100644
--- a/regress/usr.bin/mandoc/mdoc/Rs/Makefile
+++ b/regress/usr.bin/mandoc/mdoc/Rs/Makefile
@@ -1,6 +1,6 @@
-# $OpenBSD: Makefile,v 1.11 2019/01/07 06:51:37 schwarze Exp $
+# $OpenBSD: Makefile,v 1.12 2020/02/27 01:25:58 schwarze Exp $
-REGRESS_TARGETS = allch args break empty paragraph three_authors
+REGRESS_TARGETS = allch args break empty paragraph three_authors transp
UTF8_TARGETS = allch break empty three_authors
LINT_TARGETS = allch args empty
HTML_TARGETS = paragraph
diff --git a/regress/usr.bin/mandoc/mdoc/Rs/transp.in b/regress/usr.bin/mandoc/mdoc/Rs/transp.in
new file mode 100644
index 00000000000..7e906d00393
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Rs/transp.in
@@ -0,0 +1,36 @@
+.\" $OpenBSD: transp.in,v 1.1 2020/02/27 01:25:58 schwarze Exp $
+.Dd $Mdocdate: February 27 2020 $
+.Dt RS-TRANSPARENT 1
+.Os
+.Sh NAME
+.Nm Rs-transparent
+.Nd transparent nodes in reference blocks
+.Sh SEE ALSO
+.Tg transparent
+.Rs
+.%T title
+.%A first after title
+.%A last
+.Re
+.Rs
+.%A first
+.%A middle
+.%A last before title
+.%T title
+.Re
+.Rs
+.%T title
+.Tg transparent
+.%A first after title and transparent
+.%A middle before transparent
+.Tg transparent
+.%A last before transparent
+.Tg transparent
+.Re
+.Rs
+.Tg transparent
+.%A first after transparent
+.%A last before transparent and title
+.Tg transparent
+.%T title
+.Re
diff --git a/regress/usr.bin/mandoc/mdoc/Rs/transp.out_ascii b/regress/usr.bin/mandoc/mdoc/Rs/transp.out_ascii
new file mode 100644
index 00000000000..cc217ed5d16
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Rs/transp.out_ascii
@@ -0,0 +1,16 @@
+RS-TRANSPARENT(1) General Commands Manual RS-TRANSPARENT(1)
+
+NNAAMMEE
+ RRss--ttrraannssppaarreenntt - transparent nodes in reference blocks
+
+SSEEEE AALLSSOO
+ first after title and last, _t_i_t_l_e.
+
+ first, middle, and last before title, _t_i_t_l_e.
+
+ first after title and transparent, middle before transparent, and last
+ before transparent, _t_i_t_l_e.
+
+ first after transparent and last before transparent and title, _t_i_t_l_e.
+
+OpenBSD February 27, 2020 OpenBSD
diff --git a/regress/usr.bin/mandoc/mdoc/Rs/transp.out_markdown b/regress/usr.bin/mandoc/mdoc/Rs/transp.out_markdown
new file mode 100644
index 00000000000..a9896335654
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Rs/transp.out_markdown
@@ -0,0 +1,27 @@
+RS-TRANSPARENT(1) - General Commands Manual
+
+# NAME
+
+**Rs-transparent** - transparent nodes in reference blocks
+
+# SEE ALSO
+
+first after title,
+last,
+*title*.
+
+first,
+middle, and
+last before title,
+*title*.
+
+first after title and transparent,
+middle before transparent, and
+last before transparent,
+*title*.
+
+first after transparent,
+last before transparent and title,
+*title*.
+
+OpenBSD - February 27, 2020
diff --git a/regress/usr.bin/mandoc/mdoc/Sh/Makefile b/regress/usr.bin/mandoc/mdoc/Sh/Makefile
index 1c20f13fb44..213664ec7b4 100644
--- a/regress/usr.bin/mandoc/mdoc/Sh/Makefile
+++ b/regress/usr.bin/mandoc/mdoc/Sh/Makefile
@@ -1,7 +1,8 @@
-# $OpenBSD: Makefile,v 1.11 2019/01/07 06:51:37 schwarze Exp $
+# $OpenBSD: Makefile,v 1.12 2020/02/27 01:25:58 schwarze Exp $
REGRESS_TARGETS = badNAME before empty emptyNAME first nohead order
-REGRESS_TARGETS += orderNAME paragraph parbefore parborder punctNAME subbefore
+REGRESS_TARGETS += orderNAME paragraph parbefore parborder punctNAME
+REGRESS_TARGETS += subbefore transp
LINT_TARGETS = badNAME before empty emptyNAME first nohead order
LINT_TARGETS += orderNAME parbefore parborder punctNAME subbefore
HTML_TARGETS = paragraph
diff --git a/regress/usr.bin/mandoc/mdoc/Sh/transp.in b/regress/usr.bin/mandoc/mdoc/Sh/transp.in
new file mode 100644
index 00000000000..843c49315e2
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Sh/transp.in
@@ -0,0 +1,11 @@
+.\" $OpenBSD: transp.in,v 1.1 2020/02/27 01:25:58 schwarze Exp $
+.Dd $Mdocdate: February 27 2020 $
+.Dt SH-TRANSP 1
+.Os
+.Sh NAME
+.Nm Sh-transp
+.Nd interaction of sections with transparent nodes
+.Sh DESCRIPTION
+.Tg transparent
+.Ss Subsection
+text
diff --git a/regress/usr.bin/mandoc/mdoc/Sh/transp.out_ascii b/regress/usr.bin/mandoc/mdoc/Sh/transp.out_ascii
new file mode 100644
index 00000000000..e30d327f664
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Sh/transp.out_ascii
@@ -0,0 +1,10 @@
+SH-TRANSP(1) General Commands Manual SH-TRANSP(1)
+
+NNAAMMEE
+ SShh--ttrraannsspp - interaction of sections with transparent nodes
+
+DDEESSCCRRIIPPTTIIOONN
+ SSuubbsseeccttiioonn
+ text
+
+OpenBSD February 27, 2020 OpenBSD
diff --git a/regress/usr.bin/mandoc/mdoc/Sh/transp.out_markdown b/regress/usr.bin/mandoc/mdoc/Sh/transp.out_markdown
new file mode 100644
index 00000000000..f395ed508bb
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Sh/transp.out_markdown
@@ -0,0 +1,13 @@
+SH-TRANSP(1) - General Commands Manual
+
+# NAME
+
+**Sh-transp** - interaction of sections with transparent nodes
+
+# DESCRIPTION
+
+## Subsection
+
+text
+
+OpenBSD - February 27, 2020
diff --git a/regress/usr.bin/mandoc/mdoc/Sm/badarg.out_markdown b/regress/usr.bin/mandoc/mdoc/Sm/badarg.out_markdown
index 903b7f81740..92fc66b11de 100644
--- a/regress/usr.bin/mandoc/mdoc/Sm/badarg.out_markdown
+++ b/regress/usr.bin/mandoc/mdoc/Sm/badarg.out_markdown
@@ -8,7 +8,6 @@ SM-BADARG(1) - General Commands Manual
**-f** *on*
**-f**&zwnj;*off* bad
-**-f** *bad* (on)
-bad**-f**&zwnj;*bad*(off)
+**-f** *bad* (on) bad**-f**&zwnj;*bad*(off)
OpenBSD-July 4, 2017
diff --git a/regress/usr.bin/mandoc/mdoc/Sm/twoarg.out_markdown b/regress/usr.bin/mandoc/mdoc/Sm/twoarg.out_markdown
index 5b64aa6eeab..ce46afb1404 100644
--- a/regress/usr.bin/mandoc/mdoc/Sm/twoarg.out_markdown
+++ b/regress/usr.bin/mandoc/mdoc/Sm/twoarg.out_markdown
@@ -8,12 +8,10 @@ SM-TWOARG(1) - General Commands Manual
**default**:
**-f** *on*
-**off two**:
-two**-f**&zwnj;*off*
+**off two**: two**-f**&zwnj;*off*
**badtwo**: bad two
**-f** *off*
-**on two**:
-two
+**on two**: two
**-f** *on*
OpenBSD - July 4, 2017
diff --git a/regress/usr.bin/mandoc/mdoc/blank/Makefile b/regress/usr.bin/mandoc/mdoc/blank/Makefile
index 2e197eb56ef..8b61f902b36 100644
--- a/regress/usr.bin/mandoc/mdoc/blank/Makefile
+++ b/regress/usr.bin/mandoc/mdoc/blank/Makefile
@@ -1,7 +1,7 @@
-# $OpenBSD: Makefile,v 1.7 2017/03/08 22:53:36 schwarze Exp $
+# $OpenBSD: Makefile,v 1.8 2020/02/27 01:25:59 schwarze Exp $
-REGRESS_TARGETS = line comment list
-LINT_TARGETS = line comment list
+REGRESS_TARGETS = line comment list transp
+LINT_TARGETS = line comment list transp
SKIP_TMAN = list
SKIP_MARKDOWN ?= line
diff --git a/regress/usr.bin/mandoc/mdoc/blank/transp.in b/regress/usr.bin/mandoc/mdoc/blank/transp.in
new file mode 100644
index 00000000000..6dcb22514c6
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/blank/transp.in
@@ -0,0 +1,77 @@
+.\" $OpenBSD: transp.in,v 1.1 2020/02/27 01:25:59 schwarze Exp $
+.Dd $Mdocdate: February 27 2020 $
+.Dt BLANK-TRANSP 1
+.Os
+.Sh NAME
+.Nm blank-transp
+.Nd transparent nodes between line breaks
+.Sh DESCRIPTION
+Double br:
+.br
+.Tg brbr
+.br
+br Pp:
+.br
+.Tg brPp
+.Pp
+Pp br:
+.Pp
+.Tg Ppbr
+.br
+Double Pp:
+.Pp
+.Tg PpPp
+.Pp
+br sp:
+.br
+.Tg brsp
+.sp
+sp br:
+.sp
+.Tg spbr
+.br
+Pp sp:
+.Pp
+.Tg Ppsp
+.sp
+Pp sp 2v:
+.Pp
+.Tg Ppsp2v
+.sp 2v
+sp Pp:
+.sp
+.Tg spPp
+.Pp
+Double sp:
+.sp
+.Tg spsp
+.sp
+br blank:
+.br
+.Tg brbl
+
+blank br:
+
+.Tg blbr
+.br
+Pp blank:
+.Pp
+.Tg Ppbl
+
+blank Pp:
+
+.Tg blPp
+.Pp
+sp blank:
+.sp
+.Tg spbl
+
+blank sp:
+
+.Tg blsp
+.sp
+Double blank:
+
+.Tg blbl
+
+end of file
diff --git a/regress/usr.bin/mandoc/mdoc/blank/transp.out_ascii b/regress/usr.bin/mandoc/mdoc/blank/transp.out_ascii
new file mode 100644
index 00000000000..f8bdd6b8abc
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/blank/transp.out_ascii
@@ -0,0 +1,48 @@
+BLANK-TRANSP(1) General Commands Manual BLANK-TRANSP(1)
+
+NNAAMMEE
+ bbllaannkk--ttrraannsspp - transparent nodes between line breaks
+
+DDEESSCCRRIIPPTTIIOONN
+ Double br:
+ br Pp:
+
+ Pp br:
+
+ Double Pp:
+
+ br sp:
+
+ sp br:
+
+ Pp sp:
+
+ Pp sp 2v:
+
+ sp Pp:
+
+
+ Double sp:
+
+
+ br blank:
+
+ blank br:
+
+ Pp blank:
+
+ blank Pp:
+
+
+ sp blank:
+
+
+ blank sp:
+
+
+ Double blank:
+
+
+ end of file
+
+OpenBSD February 27, 2020 OpenBSD
diff --git a/regress/usr.bin/mandoc/mdoc/blank/transp.out_lint b/regress/usr.bin/mandoc/mdoc/blank/transp.out_lint
new file mode 100644
index 00000000000..533ea600a49
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/blank/transp.out_lint
@@ -0,0 +1,19 @@
+mandoc: transp.in:52:1: WARNING: blank line in fill mode, using .sp
+mandoc: transp.in:54:1: WARNING: blank line in fill mode, using .sp
+mandoc: transp.in:60:1: WARNING: blank line in fill mode, using .sp
+mandoc: transp.in:62:1: WARNING: blank line in fill mode, using .sp
+mandoc: transp.in:68:1: WARNING: blank line in fill mode, using .sp
+mandoc: transp.in:70:1: WARNING: blank line in fill mode, using .sp
+mandoc: transp.in:74:1: WARNING: blank line in fill mode, using .sp
+mandoc: transp.in:76:1: WARNING: blank line in fill mode, using .sp
+mandoc: transp.in:12:2: WARNING: skipping paragraph macro: br after br
+mandoc: transp.in:14:2: WARNING: skipping paragraph macro: br before Pp
+mandoc: transp.in:20:2: WARNING: skipping paragraph macro: br after Pp
+mandoc: transp.in:22:2: WARNING: skipping paragraph macro: Pp before Pp
+mandoc: transp.in:26:2: WARNING: skipping paragraph macro: br before sp
+mandoc: transp.in:32:2: WARNING: skipping paragraph macro: br after sp
+mandoc: transp.in:36:2: WARNING: skipping paragraph macro: sp after Pp
+mandoc: transp.in:40:2: WARNING: skipping paragraph macro: sp after Pp
+mandoc: transp.in:50:2: WARNING: skipping paragraph macro: br before sp
+mandoc: transp.in:56:2: WARNING: skipping paragraph macro: br after sp
+mandoc: transp.in:60:1: WARNING: skipping paragraph macro: sp after Pp
diff --git a/regress/usr.bin/mandoc/mdoc/blank/transp.out_markdown b/regress/usr.bin/mandoc/mdoc/blank/transp.out_markdown
new file mode 100644
index 00000000000..9c8ac8258fa
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/blank/transp.out_markdown
@@ -0,0 +1,44 @@
+BLANK-TRANSP(1) - General Commands Manual
+
+# NAME
+
+**blank-transp** - transparent nodes between line breaks
+
+# DESCRIPTION
+
+Double br:
+br Pp:
+
+Pp br:
+
+Double Pp:
+
+br sp:
+
+sp br:
+
+Pp sp:
+
+Pp sp 2v:
+
+sp Pp:
+
+Double sp:
+
+br blank:
+
+blank br:
+
+Pp blank:
+
+blank Pp:
+
+sp blank:
+
+blank sp:
+
+Double blank:
+
+end of file
+
+OpenBSD - February 27, 2020