diff options
| author | goodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2005-12-11 21:57:53 +0000 |
|---|---|---|
| committer | goodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2005-12-11 21:57:53 +0000 |
| commit | ae57dedd90f9d6eb9a528359bec8fb88685ee319 (patch) | |
| tree | a1652464dbc78ffd85ee5527b825816d13966172 /docutils/transforms | |
| parent | 32c34df7dfe7087153ed29df2c49b6f80086cada (diff) | |
| download | docutils-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.py | 4 |
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: |
