Skip to content

Commit

Permalink
Fixed issue with using string for bibliography on ST2
Browse files Browse the repository at this point in the history
  • Loading branch information
ig0774 committed Apr 21, 2016
1 parent 443487e commit 5017d82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions bibliography_plugins/traditionalBibliography.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,6 @@ def get_entries(self, *bib_files):

print("Found %d total bib entries" % (len(entries),))
return entries

def on_insert_citation(self, keyword):
print('Inserted {0}'.format(keyword))
2 changes: 1 addition & 1 deletion latex_cite_completions.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ def _run_command(plugin_name):
plugins = 'traditional_bibliography'

result = None
if type(plugins) == strbase:
if isinstance(plugins, strbase):
result = _run_command(plugins)
else:
for plugin_name in plugins:
Expand Down

0 comments on commit 5017d82

Please sign in to comment.