commit 5291be38a4f45963a326909e160fdeff8cc5b94c
parent 313200191031256ec696e7b97431a6325a357af5
Author: Nick Mathewson <nickm@torproject.org>
Date: Thu, 13 Oct 2016 14:25:06 -0400
Declare that books should have a title and a year.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/BibTeX.py b/BibTeX.py
@@ -383,6 +383,8 @@ class BibTeXEntry:
fields = 'booktitle', 'editor'
elif self.type == 'article':
fields = 'journal', 'year'
+ elif self.type == 'book':
+ fields = 'title', 'year'
elif self.type == 'techreport':
fields = 'institution',
elif self.type == 'misc':