Revision: 4214
Author: wikipedian
Date: 2007-09-08 11:23:23 +0000 (Sat, 08 Sep 2007)
Log Message:
-----------
bugfix: cosmetic_changes was removing spaces that were used to structure
template parameters
Modified Paths:
--------------
trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py
===================================================================
--- trunk/pywikipedia/wikipedia.py 2007-09-08 00:50:29 UTC (rev 4213)
+++ trunk/pywikipedia/wikipedia.py 2007-09-08 11:23:23 UTC (rev 4214)
@@ -2577,7 +2577,7 @@
'table':
re.compile(r'(?ims)^{\|.*?^\|}|<table>.*?</table>'),
# templates with parameters often have whitespace that is used to
# improve wiki source code readability.
- 'template': re.compile(r'(?s)^{{.*?}}'),
+ 'template': re.compile(r'(?s){{.*?}}'),
}
# if we got a string, compile it as a regular expression
Show replies by date