summaryrefslogtreecommitdiffstats
path: root/regress/mdoc/Os
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2020-01-19 16:44:50 +0000
committerIngo Schwarze <schwarze@openbsd.org>2020-01-19 16:44:50 +0000
commit997afdc8d9bfb322c69f12820e5299a5cbca4fba (patch)
tree458f1731d8143930bf5485c03d1d76303963ca81 /regress/mdoc/Os
parente7053cbde7464907196871161ebc3a69546a11ab (diff)
downloadmandoc-997afdc8d9bfb322c69f12820e5299a5cbca4fba.tar.gz
Align to the new, sane behaviour of the groff_mdoc(7) .Dd macro:
without an argument, use the empty string, and always concatenate all arguments, no matter their number. This allows reducing the number of arguments of mandoc_normdate() and some other simplifications, at the same time polishing some error messages by adding the name of the macro in question.
Diffstat (limited to 'regress/mdoc/Os')
-rw-r--r--regress/mdoc/Os/dupe.in2
-rw-r--r--regress/mdoc/Os/dupe.out_ascii2
-rw-r--r--regress/mdoc/Os/dupe.out_lint4
-rw-r--r--regress/mdoc/Os/dupe.out_markdown2
4 files changed, 5 insertions, 5 deletions
diff --git a/regress/mdoc/Os/dupe.in b/regress/mdoc/Os/dupe.in
index df38d04e..6608d63f 100644
--- a/regress/mdoc/Os/dupe.in
+++ b/regress/mdoc/Os/dupe.in
@@ -1,4 +1,4 @@
-.\" $OpenBSD: dupe.in,v 1.2 2017/07/04 14:53:26 schwarze Exp $
+.\" $OpenBSD: dupe.in,v 1.3 2020/01/19 16:36:47 schwarze Exp $
.Dd $Mdocdate$
.Os NetBSD
.Dt OS-DUPE 1
diff --git a/regress/mdoc/Os/dupe.out_ascii b/regress/mdoc/Os/dupe.out_ascii
index c120c4e1..c3dc72fa 100644
--- a/regress/mdoc/Os/dupe.out_ascii
+++ b/regress/mdoc/Os/dupe.out_ascii
@@ -6,4 +6,4 @@ NNAAMMEE
DDEESSCCRRIIPPTTIIOONN
initial text final text
-OpenBSD July 4, 2017 OpenBSD
+OpenBSD January 19, 2020 OpenBSD
diff --git a/regress/mdoc/Os/dupe.out_lint b/regress/mdoc/Os/dupe.out_lint
index 63b9dfd2..13ec7fe5 100644
--- a/regress/mdoc/Os/dupe.out_lint
+++ b/regress/mdoc/Os/dupe.out_lint
@@ -1,9 +1,9 @@
mandoc: dupe.in:3:5: STYLE: operating system explicitly specified: Os NetBSD (NetBSD)
-mandoc: dupe.in:2:5: STYLE: Mdocdate found: Dd $Mdocdate: (NetBSD)
+mandoc: dupe.in:2:5: STYLE: Mdocdate found: Dd $Mdocdate$ (NetBSD)
mandoc: dupe.in:4:2: WARNING: prologue macros out of order: Dt after Os
mandoc: dupe.in:5:2: ERROR: duplicate prologue macro: Os
mandoc: dupe.in:5:5: STYLE: operating system explicitly specified: Os FreeBSD (NetBSD)
-mandoc: dupe.in:2:5: STYLE: Mdocdate found: Dd $Mdocdate: (NetBSD)
+mandoc: dupe.in:2:5: STYLE: Mdocdate found: Dd $Mdocdate$ (NetBSD)
mandoc: dupe.in:11:2: ERROR: duplicate prologue macro: Os
mandoc: dupe.in:11:5: STYLE: operating system explicitly specified: Os OpenBSD (NetBSD)
mandoc: dupe.in: STYLE: RCS id missing: (NetBSD)
diff --git a/regress/mdoc/Os/dupe.out_markdown b/regress/mdoc/Os/dupe.out_markdown
index 8186cb3d..b5930051 100644
--- a/regress/mdoc/Os/dupe.out_markdown
+++ b/regress/mdoc/Os/dupe.out_markdown
@@ -9,4 +9,4 @@ OS-DUPE(1) - General Commands Manual
initial text
final text
-OpenBSD - July 4, 2017
+OpenBSD - January 19, 2020