summaryrefslogtreecommitdiffstats
path: root/regress/mdoc
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2020-04-26 21:41:07 +0000
committerIngo Schwarze <schwarze@openbsd.org>2020-04-26 21:41:07 +0000
commit799dcee3c74bb844c9b494a80db82e7f99ae3fef (patch)
tree9e782aa7963931d91aae5a3fc8a0c59fc236ed7d /regress/mdoc
parent685f3892ee135a0425aad84beaf6a9b6a5ec8058 (diff)
downloadmandoc-799dcee3c74bb844c9b494a80db82e7f99ae3fef.tar.gz
While we do not recommend the idiom ".Fl Fl long" for long options
because it is an abuse of semantic macros for device-specific presentational effects, this idiom is so widespread that it makes sense to convert it to the recommended ".Fl \-long" during the validation phase. For example, this improves HTML formatting in pages where authors have used the dubious .Fl Fl. Feature suggested by Steffen Nurpmeso <steffen at sdaoden dot eu> on freebsd-hackers.
Diffstat (limited to 'regress/mdoc')
-rw-r--r--regress/mdoc/Fl/Makefile8
-rw-r--r--regress/mdoc/Fl/long.in16
-rw-r--r--regress/mdoc/Fl/long.out_ascii14
-rw-r--r--regress/mdoc/Fl/long.out_html6
-rw-r--r--regress/mdoc/Fl/long.out_markdown21
-rw-r--r--regress/mdoc/Fl/long.out_tag4
6 files changed, 65 insertions, 4 deletions
diff --git a/regress/mdoc/Fl/Makefile b/regress/mdoc/Fl/Makefile
index c061adef..1f1c09e8 100644
--- a/regress/mdoc/Fl/Makefile
+++ b/regress/mdoc/Fl/Makefile
@@ -1,9 +1,9 @@
-# $OpenBSD: Makefile,v 1.14 2020/03/13 00:31:06 schwarze Exp $
+# $OpenBSD: Makefile,v 1.15 2020/04/26 21:29:46 schwarze Exp $
-REGRESS_TARGETS = font multiarg noarg parsed punct spacing tag
-TAG_TARGETS = tag
+REGRESS_TARGETS = font long multiarg noarg parsed punct spacing tag
+TAG_TARGETS = long tag
LINT_TARGETS = punct
-HTML_TARGETS = tag
+HTML_TARGETS = long tag
SKIP_TMAN = tag
.include <bsd.regress.mk>
diff --git a/regress/mdoc/Fl/long.in b/regress/mdoc/Fl/long.in
new file mode 100644
index 00000000..37c2b81c
--- /dev/null
+++ b/regress/mdoc/Fl/long.in
@@ -0,0 +1,16 @@
+.\" $OpenBSD: long.in,v 1.1 2020/04/26 21:29:46 schwarze Exp $
+.Dd $Mdocdate$
+.Dt FL-LONG 1
+.Os
+.Sh NAME
+.Nm Fl-long
+.Nd GNU-style long options
+.Sh DESCRIPTION
+BEGINTEST
+.Bl -tag -width Ds
+.It Fl \-long
+options
+.It Fl Fl long
+options
+.El
+ENDTEST
diff --git a/regress/mdoc/Fl/long.out_ascii b/regress/mdoc/Fl/long.out_ascii
new file mode 100644
index 00000000..4a50ab1b
--- /dev/null
+++ b/regress/mdoc/Fl/long.out_ascii
@@ -0,0 +1,14 @@
+FL-LONG(1) General Commands Manual FL-LONG(1)
+
+NNAAMMEE
+ FFll--lloonngg - GNU-style long options
+
+DDEESSCCRRIIPPTTIIOONN
+ BEGINTEST
+
+ ----lloonngg options
+
+ ----lloonngg options
+ ENDTEST
+
+OpenBSD April 26, 2020 OpenBSD
diff --git a/regress/mdoc/Fl/long.out_html b/regress/mdoc/Fl/long.out_html
new file mode 100644
index 00000000..6fabcfcd
--- /dev/null
+++ b/regress/mdoc/Fl/long.out_html
@@ -0,0 +1,6 @@
+<dl class="Bl-tag">
+ <dt id="long"><a class="permalink" href="#long"><code class="Fl">--long</code></a></dt>
+ <dd>options</dd>
+ <dt id="long~2"><a class="permalink" href="#long~2"><code class="Fl">--long</code></a></dt>
+ <dd>options</dd>
+</dl>
diff --git a/regress/mdoc/Fl/long.out_markdown b/regress/mdoc/Fl/long.out_markdown
new file mode 100644
index 00000000..3abf3e84
--- /dev/null
+++ b/regress/mdoc/Fl/long.out_markdown
@@ -0,0 +1,21 @@
+FL-LONG(1) - General Commands Manual
+
+# NAME
+
+**Fl-long** - GNU-style long options
+
+# DESCRIPTION
+
+BEGINTEST
+
+**-&#45;long**
+
+> options
+
+**-&#45;long**
+
+> options
+
+ENDTEST
+
+OpenBSD - April 26, 2020
diff --git a/regress/mdoc/Fl/long.out_tag b/regress/mdoc/Fl/long.out_tag
new file mode 100644
index 00000000..b99cc311
--- /dev/null
+++ b/regress/mdoc/Fl/long.out_tag
@@ -0,0 +1,4 @@
+NAME 3
+DESCRIPTION 6
+long 9
+long 11