summaryrefslogtreecommitdiff
path: root/docutils/transforms
diff options
context:
space:
mode:
authorgoodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2005-12-11 21:57:53 +0000
committergoodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2005-12-11 21:57:53 +0000
commitae57dedd90f9d6eb9a528359bec8fb88685ee319 (patch)
treea1652464dbc78ffd85ee5527b825816d13966172 /docutils/transforms
parent32c34df7dfe7087153ed29df2c49b6f80086cada (diff)
downloaddocutils-ae57dedd90f9d6eb9a528359bec8fb88685ee319.tar.gz
keep "Authors" field name, no matter how many authors listed
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@4173 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/transforms')
-rw-r--r--docutils/transforms/frontmatter.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/docutils/transforms/frontmatter.py b/docutils/transforms/frontmatter.py
index d7d954306..33f9a165f 100644
--- a/docutils/transforms/frontmatter.py
+++ b/docutils/transforms/frontmatter.py
@@ -463,10 +463,8 @@ class DocInfo(Transform):
authors = self.authors_from_paragraphs(field)
authornodes = [nodes.author('', '', *author)
for author in authors if author]
- if len(authornodes) > 1:
+ if len(authornodes) >= 1:
docinfo.append(nodes.authors('', *authornodes))
- elif len(authornodes) == 1:
- docinfo.append(authornodes[0])
else:
raise TransformError
except TransformError: