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
This commit is contained in:
arcnmx
2023-02-21 09:42:57 -07:00
committed by John MacFarlane
parent f5b3a88017
commit 9c39d1632e
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -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$
+3 -1
View File
@@ -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$