From 77f42c5cb89d81ff3010614408d1fa814e320f9a Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 20 May 2003 19:27:49 +0000 Subject: Catch extraneous periods svn:r21 --- BibTeX.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'BibTeX.py') diff --git a/BibTeX.py b/BibTeX.py index 92bef24..ee2dd12 100644 --- 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): -- cgit v1.2.3-70-g09d2