SoftVarE-Group / MibTeX

Minimalistic tool to manage your references with BibTeX
GNU Lesser General Public License v3.0
2 stars 1 forks source link

Bugfix for Parsing Misc Entries #39

Closed pmbittner closed 3 years ago

pmbittner commented 3 years ago

Hi Thomas,

For misc entries, no fields are required in BibTeX. However, MibTeX attempts to parse authors and titles from each entry and throws an exception if this is not possible. Thus, MibTeX crashes with the newest BibTags version because we have many new misc entries. This PR is a bugfix for this issue.

I refactored parsing of authors and title to not be exception-based but perform necessary checks preemptively. When a title or author is missing, a warning is printed for non-misc entries.

pmbittner commented 3 years ago

speed approved by Thomas

Should be potentially revisited later.