small documentation improvements

This commit is contained in:
Araq 2012-12-09 21:23:12 +01:00
commit b0dc877cc3
3 changed files with 10 additions and 9 deletions

View file

@ -390,7 +390,8 @@ proc renderField(d: PDoc, n: PRstNode, result: var string) =
if d.target == outLatex:
var fieldname = addNodes(n.sons[0])
var fieldval = esc(d.target, strip(addNodes(n.sons[1])))
if cmpIgnoreStyle(fieldname, "author") == 0:
if cmpIgnoreStyle(fieldname, "author") == 0 or
cmpIgnoreStyle(fieldname, "authors") == 0:
if d.meta[metaAuthor].len == 0:
d.meta[metaAuthor] = fieldval
b = true