Revision: 5746 Author: nicdumz Date: 2008-07-21 20:35:21 +0000 (Mon, 21 Jul 2008)
Log Message: ----------- Ignoring blanks references
Modified Paths: -------------- trunk/pywikipedia/reflinks.py
Modified: trunk/pywikipedia/reflinks.py =================================================================== --- trunk/pywikipedia/reflinks.py 2008-07-21 11:39:00 UTC (rev 5745) +++ trunk/pywikipedia/reflinks.py 2008-07-21 20:35:21 UTC (rev 5746) @@ -243,6 +243,9 @@
for match in self.REFS.finditer(text): content = match.group('content') + if not content.strip(): + continue + name = match.group('name') group = self.GROUPS.match(name) if not foundRefs.has_key(group):