Revision: 8620 Author: xqt Date: 2010-10-07 11:56:18 +0000 (Thu, 07 Oct 2010)
Log Message: ----------- ignore blanks in template parameters
Modified Paths: -------------- trunk/pywikipedia/commonscat.py
Modified: trunk/pywikipedia/commonscat.py =================================================================== --- trunk/pywikipedia/commonscat.py 2010-10-07 08:51:35 UTC (rev 8619) +++ trunk/pywikipedia/commonscat.py 2010-10-07 11:56:18 UTC (rev 8620) @@ -282,7 +282,7 @@ else: for (inPageTemplate, param) in templatesWithParams: if inPageTemplate == template[0] \ - and template[1] in param[0]: + and template[1] in param[0].replace(' ',''): return True return False