made formatting more robust

main
Fabien Benureau 10 years ago
parent 1319ebb828
commit f7dcc60fbc

@ -33,7 +33,7 @@ def bib_oneliner(bibentry):
return u'{authors} \"{title}\"{journal}{year}'.format(
authors=color.dye(authors, color.grey, bold=True),
title=bibentry['title'],
title=bibentry.get('title', ''),
journal=color.dye(journal, color.yellow),
year=' ({})'.format(bibentry['year']) if 'year' in bibentry else '',
)

Loading…
Cancel
Save