From 66e8f935f05d1018898cee9e0c4ad713fc6b8673 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sun, 19 Jan 2020 16:44:50 +0000 Subject: 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. --- regress/mdoc/Os/dupe.in | 4 ++-- regress/mdoc/Os/dupe.out_ascii | 2 +- regress/mdoc/Os/dupe.out_lint | 4 ++-- regress/mdoc/Os/dupe.out_markdown | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'regress/mdoc/Os') diff --git a/regress/mdoc/Os/dupe.in b/regress/mdoc/Os/dupe.in index 495a1132..ae0884b4 100644 --- a/regress/mdoc/Os/dupe.in +++ b/regress/mdoc/Os/dupe.in @@ -1,5 +1,5 @@ -.\" $OpenBSD: dupe.in,v 1.2 2017/07/04 14:53:26 schwarze Exp $ -.Dd $Mdocdate: July 4 2017 $ +.\" $OpenBSD: dupe.in,v 1.3 2020/01/19 16:36:47 schwarze Exp $ +.Dd $Mdocdate: January 19 2020 $ .Os NetBSD .Dt OS-DUPE 1 .Os FreeBSD 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..5cdd9ee5 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: January 19 2020 $ (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: January 19 2020 $ (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 -- cgit v1.2.3-56-ge451