From 9c39d1632ea9dfd0ff12f15a555baf5b15143274 Mon Sep 17 00:00:00 2001 From: arcnmx Date: Mon, 20 Feb 2023 08:44:48 -0800 Subject: asciidoc{,tor} template: fix revision date when author is unset Revision line syntax is only valid in combination with an author line, so the date attribute must be set explicitly when the author is missing fixes #8637 --- data/templates/default.asciidoc | 4 +++- data/templates/default.asciidoctor | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'data') diff --git a/data/templates/default.asciidoc b/data/templates/default.asciidoc index 7668a8325..ebe70914d 100644 --- a/data/templates/default.asciidoc +++ b/data/templates/default.asciidoc @@ -2,10 +2,12 @@ $if(titleblock)$ = $title$ $if(author)$ $for(author)$$author$$sep$; $endfor$ -$endif$ $if(date)$ $date$ $endif$ +$elseif(date)$ +:revdate: $date$ +$endif$ $if(keywords)$ :keywords: $for(keywords)$$keywords$$sep$, $endfor$ $endif$ diff --git a/data/templates/default.asciidoctor b/data/templates/default.asciidoctor index 2616b05d6..e20384989 100644 --- a/data/templates/default.asciidoctor +++ b/data/templates/default.asciidoctor @@ -2,10 +2,12 @@ $if(titleblock)$ = $title$ $if(author)$ $for(author)$$author$$sep$; $endfor$ -$endif$ $if(date)$ $date$ $endif$ +$elseif(date)$ +:revdate: $date$ +$endif$ $if(keywords)$ :keywords: $for(keywords)$$keywords$$sep$, $endfor$ $endif$ -- cgit v1.2.3