aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc.7
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-07-26 13:45:49 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-07-26 13:45:49 +0000
commit84e7a1da762680fa2919e438e354384ab7e18fc4 (patch)
tree6267d508238e72bbc8c18bd6031a49c6b316db7e /mdoc.7
parentc110d065f589159f350134b61bc102bf2e2bda29 (diff)
downloadmandoc-84e7a1da762680fa2919e438e354384ab7e18fc4.tar.gz
mandoc-84e7a1da762680fa2919e438e354384ab7e18fc4.tar.zst
mandoc-84e7a1da762680fa2919e438e354384ab7e18fc4.zip
Note that `Dd' can be empty. This found following a thread on discuss@
started by Sascha Wildner, 07/25/2010 06:30 AM.
Diffstat (limited to 'mdoc.7')
-rw-r--r--mdoc.714
1 files changed, 10 insertions, 4 deletions
diff --git a/mdoc.7 b/mdoc.7
index 8ed3adfe..549a30e2 100644
--- a/mdoc.7
+++ b/mdoc.7
@@ -1,4 +1,4 @@
-.\" $Id: mdoc.7,v 1.141 2010/07/26 12:51:56 kristaps Exp $
+.\" $Id: mdoc.7,v 1.142 2010/07/26 13:45:49 kristaps Exp $
.\"
.\" Copyright (c) 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
.\" Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org>
@@ -805,7 +805,7 @@ then the macro accepts an arbitrary number of arguments.
.It Sx \&Cd Ta Yes Ta Yes Ta >0
.It Sx \&Cm Ta Yes Ta Yes Ta n
.It Sx \&Db Ta \&No Ta \&No Ta 1
-.It Sx \&Dd Ta \&No Ta \&No Ta >0
+.It Sx \&Dd Ta \&No Ta \&No Ta n
.It Sx \&Dt Ta \&No Ta \&No Ta n
.It Sx \&Dv Ta Yes Ta Yes Ta n
.It Sx \&Dx Ta Yes Ta Yes Ta n
@@ -1470,7 +1470,7 @@ This is the mandatory first macro of any
manual.
Its syntax is as follows:
.Pp
-.D1 Pf \. Sx \&Dd Ar date
+.D1 Pf \. Sx \&Dd Op Ar date
.Pp
The
.Ar date
@@ -1480,7 +1480,7 @@ which signifies the current manual revision date dictated by
.Xr cvs 1 ,
or instead a valid canonical date as specified by
.Sx Dates .
-If a date does not conform, the current date is used instead.
+If a date does not conform or is empty, the current date is used.
.Pp
Examples:
.D1 \&.Dd $\&Mdocdate$
@@ -2718,6 +2718,12 @@ Heirloom troff, the other significant troff implementation accepting
.Pp
.Bl -dash -compact
.It
+An empty
+.Sq \&Dd
+macro in groff prints
+.Dq Epoch .
+In mandoc, it resolves to the current date.
+.It
The \es (font size), \em (font colour), and \eM (font filling colour)
font decoration escapes are all discarded in mandoc.
.It