Giter VIP home page Giter VIP logo

biblint's People

Contributors

johndoe31415 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

biblint's Issues

Errors if entry title is missing

When I tried to run biblint on a file where many entries were missing titles, it threw an error instead of flagging the missing titles as an issue.

Traceback (most recent call last):
  File "biblint", line 127, in <module>
    for complaint in checker.check_all():
  File "/Users/morganschwartz/Code/biblint/BibLintChecks.py", line 294, in check_all
    indices_by_title = BibliographyTools.get_indices_by_title(self.bibliography)
  File "/Users/morganschwartz/Code/biblint/Tools.py", line 86, in get_indices_by_title
    title = BibEntryTools.readable_title(entry)
  File "/Users/morganschwartz/Code/biblint/Tools.py", line 75, in readable_title
    title = bibentry.rawtext("title")
  File "/Users/morganschwartz/Code/biblint/BibEntry.py", line 158, in rawtext
    return "".join(field.text for field in self.parsefield(fieldname))
  File "/Users/morganschwartz/Code/biblint/BibEntry.py", line 154, in parsefield
    parsedtext = self.parsetext(self[fieldname])
  File "/Users/morganschwartz/Code/biblint/BibEntry.py", line 216, in __getitem__
    return self._properties[key]
KeyError: 'title'

Parsing fails when item is ending with }}

Exception: Error parsing BibTeX file ./Biblio.bib on line number 97: Begin of new entry found, but last entry not finished yet.

Previous bib entry ends with doi={10.1109/20.582541}}

Correcting with
doi={10.1109/20.582541}
}

And it's ok ;-)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.