summaryrefslogtreecommitdiff
path: root/docbook.conf
diff options
context:
space:
mode:
authorStuart Rackham <srackham@methods.co.nz>2009-03-18 10:36:33 +1300
committerStuart Rackham <srackham@methods.co.nz>2009-03-18 10:36:33 +1300
commitb7f1a5f867cf0eb3f81e953810653d289b1a98e2 (patch)
treea841a737412e94f89c36e20d6705ee3201bc9c69 /docbook.conf
parent9cfd325ad97b5524339d49ddfbc1eabff1cda6f1 (diff)
downloadasciidoc-py3-b7f1a5f867cf0eb3f81e953810653d289b1a98e2.tar.gz
Make outputs behave better when the AsciiDoc source has no header.
Diffstat (limited to 'docbook.conf')
-rw-r--r--docbook.conf6
1 files changed, 4 insertions, 2 deletions
diff --git a/docbook.conf b/docbook.conf
index c4df08f..674c3e3 100644
--- a/docbook.conf
+++ b/docbook.conf
@@ -482,9 +482,11 @@ ifdef::doctype-article[]
template::[header-declarations]
<article lang="{lang=en}">
-{doctitle#}<articleinfo>
+<articleinfo>
<title>{doctitle}</title>
<date>{date}</date>
+# To ensure valid articleinfo when there is no AsciiDoc header.
+ {doctitle%}{date%}<date>{docdate}</date>
{authored#}<author>
<firstname>{firstname}</firstname>
<othername>{middlename}</othername>
@@ -500,7 +502,7 @@ template::[header-declarations]
# DEPRECTED: Use corpname in preference to companyname.
<corpname>{companyname}</corpname>
<corpname>{corpname}</corpname>
-{doctitle#}</articleinfo>
+</articleinfo>
[footer]
</article>