aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/read.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-07-28 18:34:15 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-07-28 18:34:15 +0000
commitc69a5c16ba14a67d916b1beebd5ab71b237169e3 (patch)
tree523e30ab975e9ef4dfdb8f46c1e49b93e31b3c06 /read.c
parenta6ba24dda6e56afe0403d5505d44bde5da7659b6 (diff)
downloadmandoc-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 'read.c')
-rw-r--r--read.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/read.c b/read.c
index 0fc4f6e3..0a583445 100644
--- a/read.c
+++ b/read.c
@@ -1,7 +1,7 @@
-/* $Id: read.c,v 1.195 2018/03/16 15:05:44 schwarze Exp $ */
+/* $Id: read.c,v 1.196 2018/07/28 18:34:15 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
- * Copyright (c) 2010-2017 Ingo Schwarze <schwarze@openbsd.org>
+ * Copyright (c) 2010-2018 Ingo Schwarze <schwarze@openbsd.org>
* Copyright (c) 2010, 2012 Joerg Sonnenberger <joerg@netbsd.org>
*
* Permission to use, copy, modify, and distribute this software for any
@@ -94,6 +94,7 @@ static const char * const mandocerrs[MANDOCERR_MAX] = {
"generic style suggestion",
"legacy man(7) date format",
+ "normalizing date format to",
"lower case character in document title",
"duplicate RCS id",
"possible typo in section name",