#1 Bibtex parser chokes on empty elements

closed-accepted
nobody
None
5
2009-05-23
2008-08-15
Anonymous
No

If any entry in a bibtex file contains an empty element (e.g., "Keywords = {},") then the plugins fails. The traceback ends with:

line 348, in markup
if self.text[0] == "{" and self.text[-1] == "}":
IndexError: string index out of range

Adding a check for an empty element fixes this.

Discussion

  • Michael Zeising

    Michael Zeising - 2008-08-18
    • status: open --> open-accepted
     
  • Michael Zeising

    Michael Zeising - 2008-08-18

    Logged In: YES
    user_id=1016811
    Originator: NO

    Hi! Thanks for posting the patch, it'll be in the next release!

    Michael

     
  • Michael Zeising

    Michael Zeising - 2009-05-23

    Obsolete

     
  • Michael Zeising

    Michael Zeising - 2009-05-23
    • status: open-accepted --> closed-accepted
     

Log in to post a comment.