From: bobstayton Date: Thu, 12 Jul 2018 07:38:38 +0000 (-0700) Subject: fix issue #33 Timestamps in manpages considered bugs X-Git-Tag: snapshot/2018-09-28-172~25 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=afd6e4dc23028a6ffb3912e4cc066c9ba3bc684d;p=docbook-dsssl fix issue #33 Timestamps in manpages considered bugs --- diff --git a/xsl/manpages/other.xsl b/xsl/manpages/other.xsl index 435b578d6..c87b08c17 100644 --- a/xsl/manpages/other.xsl +++ b/xsl/manpages/other.xsl @@ -254,11 +254,15 @@ <http://docbook.sf.net/> - .\" Date: - - - - + + + .\" Date: + + + + + .\" Manual: diff --git a/xsl/manpages/param.ent b/xsl/manpages/param.ent index 4c6146612..6668aa46a 100644 --- a/xsl/manpages/param.ent +++ b/xsl/manpages/param.ent @@ -41,6 +41,7 @@ + diff --git a/xsl/manpages/param.xweb b/xsl/manpages/param.xweb index e335435fc..7dd7eb835 100644 --- a/xsl/manpages/param.xweb +++ b/xsl/manpages/param.xweb @@ -127,6 +127,7 @@ &man.table.footnotes.divider; &man.subheading.divider.enabled; &man.subheading.divider; +&man.show.top.comment.date; The Stylesheet @@ -192,6 +193,7 @@ + diff --git a/xsl/params/man.show.top.comment.date.xml b/xsl/params/man.show.top.comment.date.xml new file mode 100644 index 000000000..c66a93901 --- /dev/null +++ b/xsl/params/man.show.top.comment.date.xml @@ -0,0 +1,36 @@ + + +man.show.top.comment.date +boolean + + +man.show.top.comment.date +Include metadata date in top comment section + + + + +1 + + +Description + +If non-zero, the metadata date is included in the group of metadata +comments at the top of the generated man page file. That group includes +Title, Author, etc. If the value is zero, then that date comment +is omitted. The default value is 1. + +If the refentry page info does not include a date element, +then the current date is used, that is, the date the man page was generated from +the refentry. In archiving systems, this can trigger a change of version that +is not desired when no changes were actually made. This parameter allows you to +omit the top comment date in the generated man page. + + + +