small documentation improvements
This commit is contained in:
parent
f96ec25ed2
commit
b0dc877cc3
3 changed files with 10 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue