diff options
| author | arcnmx <git@git.arcn.mx> | 2023-02-20 08:44:48 -0800 |
|---|---|---|
| committer | John MacFarlane <jgm@berkeley.edu> | 2023-02-21 09:42:57 -0700 |
| commit | 9c39d1632ea9dfd0ff12f15a555baf5b15143274 (patch) | |
| tree | c2a61ffddbbd75198d136b3668c2e0c3c0f74171 /data | |
| parent | f5b3a8801778c84cc893249f549816bbe59a15ca (diff) | |
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
Diffstat (limited to 'data')
| -rw-r--r-- | data/templates/default.asciidoc | 4 | ||||
| -rw-r--r-- | data/templates/default.asciidoctor | 4 |
2 files changed, 6 insertions, 2 deletions
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$ |
