mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-19 02:22:09 +08:00
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:
@@ -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$
|
||||
|
||||
@@ -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$
|
||||
|
||||
Reference in New Issue
Block a user