diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2018-07-28 18:34:15 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2018-07-28 18:34:15 +0000 |
commit | c69a5c16ba14a67d916b1beebd5ab71b237169e3 (patch) | |
tree | 523e30ab975e9ef4dfdb8f46c1e49b93e31b3c06 /mandoc.1 | |
parent | a6ba24dda6e56afe0403d5505d44bde5da7659b6 (diff) | |
download | mandoc-c69a5c16ba14a67d916b1beebd5ab71b237169e3.tar.gz mandoc-c69a5c16ba14a67d916b1beebd5ab71b237169e3.tar.zst mandoc-c69a5c16ba14a67d916b1beebd5ab71b237169e3.zip |
Issue a STYLE message when normalizing the date format in .Dd/.TH.
Leah Neukirchen pointed out that mdoclint(1) used to warn about a
leading zero before the day number, so we know that both NetBSD and
Void Linux want the message. It does no harm on OpenBSD because
Mdocdate always does the right thing anyway.
jmc@ agrees that it makes sense in contexts not using Mdocdate.
Diffstat (limited to 'mandoc.1')
-rw-r--r-- | mandoc.1 | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -1,4 +1,4 @@ -.\" $Id: mandoc.1,v 1.225 2018/05/03 14:21:46 schwarze Exp $ +.\" $Id: mandoc.1,v 1.226 2018/07/28 18:34:15 schwarze Exp $ .\" .\" Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> .\" Copyright (c) 2012, 2014-2018 Ingo Schwarze <schwarze@openbsd.org> @@ -15,7 +15,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: May 3 2018 $ +.Dd $Mdocdate: July 28 2018 $ .Dt MANDOC 1 .Os .Sh NAME @@ -853,6 +853,16 @@ Consider using the conventional date format .Dq "Month dd, yyyy" instead. +.It Sy "normalizing date format to" : No ... +.Pq mdoc , man +The +.Ic \&Dd +or +.Ic \&TH +macro provides an abbreviated month name or a day number with a +leading zero. +In the formatted output, the month name is written out in full +and the leading zero is omitted. .It Sy "lower case character in document title" .Pq mdoc , man The title is still used as given in the |