#! /bin/sh /usr/share/dpatch/dpatch-run ## html_bottom_date_change.dpatch by Joseph Herlant ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: This patch updates the behavior of the bottom text adding a footer-style ## attribute. Closes: #656736 ## Forwarded: https://github.com/asciidoc/asciidoc/pull/9 @DPATCH@ diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' pkg-asciidoc~/doc/asciidoc.txt pkg-asciidoc/doc/asciidoc.txt --- pkg-asciidoc~/doc/asciidoc.txt 2014-03-26 21:42:07.000000000 +0100 +++ pkg-asciidoc/doc/asciidoc.txt 2014-03-27 19:19:25.694748217 +0100 @@ -5948,6 +5948,22 @@ prior to the first document section. The document also needs to be dated to output this attribute. +|footer-style |html4, html5, xhtml11 | +Changes the "Last updated" field in the footer of the document or removes this +field and the revision number (in the footer only). + +Can take 3 values: + +- none : Don't display the "Last updated" and "Revision number" fields in the + footer of the document +- revdate : The "Last updated" field's date in the footer will be the revision + date specified in the document (`revdate` attribute) +- default (or any other value) : The "Last updated" field's date in the footer + will be the date of the input file modification + +This attribute can be set, for example, using `:footer-style: revdate` in the +header of the file or using the `--attribute footer-style=revdate` command-line +option. + |scriptsdir |html5, xhtml11 | The name of the directory containing linked JavaScripts. See <>. diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' pkg-asciidoc~/html4.conf pkg-asciidoc/html4.conf --- pkg-asciidoc~/html4.conf 2014-03-26 21:42:07.000000000 +0100 +++ pkg-asciidoc/html4.conf 2014-03-27 19:19:55.354375345 +0100 @@ -444,11 +444,14 @@ | [footer] +# Removing footer date and version if footer-style set to none +ifeval::["{footer-style=default}"!="none"]


template::[footer-text]

+endif::[] @@ -467,6 +470,16 @@ template::[docinfo] +[footer-date] +# Default footer date is document modification time +ifeval::["{footer-style=default}"!="revdate"] + {docdate} {doctime} +endif::[] +# If set to "revdate", it'll be set to the revision date +ifeval::["{footer-style=default}"=="revdate"] + {revdate} +endif::[] + #-------------------------------- # article and book document types #-------------------------------- diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' pkg-asciidoc~/html5.conf pkg-asciidoc/html5.conf --- pkg-asciidoc~/html5.conf 2014-03-26 21:42:07.000000000 +0100 +++ pkg-asciidoc/html5.conf 2014-03-27 19:19:55.358375294 +0100 @@ -662,9 +662,12 @@ {disable-javascript%

}