commit a08ad60dff1f600118d2795fb5f2d52fc316fbbb
parent 00ef12e8350f96ce6fe70a2d782b2e0ec5f9c950
Author: Nick Mathewson <nickm@torproject.org>
Date: Tue, 20 May 2003 19:27:49 +0000
Catch extraneous periods
svn:r21
Diffstat:
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/BibTeX.py b/BibTeX.py
@@ -261,10 +261,13 @@ class BibTeXEntry:
if not self['booktitle'].startswith("Proceedings of"):
errs.append("ERROR: %s's booktitle doesn't start with 'Proceedings'" % self.key)
-
- for field in self.entries.keys():
+ for field, value in self.entries.items():
if field.startswith("www_") and field not in WWW_FIELDS:
errs.append("ERROR: unknown www field %s"% field)
+ if value.strip()[-1:] == '.' and \
+ field not in ("notes", "www_remarks"):
+ errs.append("ERROR: %s.%s has an extraneous period"%(self.key,
+ field))
return errs
def biblio_to_html(self):