Skip to content

Commit

Permalink
is bib loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
jellespijker committed Jun 1, 2019
1 parent da10577 commit 0d7d5ee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mechcite/bibliography.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ def cite(self, key):
if key in self._bib.entries:
self._bib.citations.add(key)

def loaded(self):
return hasattr(self, '_bib')

def _tbl_writer(self, writer, italic):
writer.table_name = 'Bibliography'
writer.headers = ['Index', 'Citation']
Expand Down

0 comments on commit 0d7d5ee

Please # to comment.