ReScience / template

Template for article submission

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

space before asterisk in affiliation causes problems

sje30 opened this issue · comments

hi,
If we (accidently) put a space before asterisk in affiliation list, then we get the following error:

make
./yaml-to-latex.py -i metadata.yaml -o metadata.tex
Traceback (most recent call last):
  File "./yaml-to-latex.py", line 93, in <module>
    content = generate_latex_metadata(filename_in, article)
  File "./yaml-to-latex.py", line 10, in generate_latex_metadata
    "% DO NOT EDIT - automatically generated from {filename}\n\n"
AttributeError: 'str' object has no attribute 'name'

see: sje30/test2@0878bca

fixed in the obvious way (deleting the space), but it took me about 15 minutes to find it...

Ouch, sorry for that. Can you make a PR to fix the problem (latest version is here: https://github.com/ReScience/articles)

I'm afraid I don't have a fix (to make it insensitive to white space), but rather deleted the space that crept into our version of the yaml.