[Pywikipedia-l] SVN: [4740] trunk/pywikipedia/wikipedia.py
russblau at svn.wikimedia.org
russblau at svn.wikimedia.org
Thu Dec 20 17:09:58 UTC 2007
Revision: 4740
Author: russblau
Date: 2007-12-20 17:09:58 +0000 (Thu, 20 Dec 2007)
Log Message:
-----------
Add another replaceExcept exception for <ref></ref> tags, and remove duplicate comment
Modified Paths:
--------------
trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py
===================================================================
--- trunk/pywikipedia/wikipedia.py 2007-12-20 17:03:45 UTC (rev 4739)
+++ trunk/pywikipedia/wikipedia.py 2007-12-20 17:09:58 UTC (rev 4740)
@@ -2768,10 +2768,11 @@
'noinclude': re.compile(r'(?is)<noinclude>.*?</noinclude>'),
# wiki tags are ignored inside nowiki tags.
'nowiki': re.compile(r'(?is)<nowiki>.*?</nowiki>'),
+ # preformatted text
+ 'pre': re.compile(r'(?ism)<pre>.*?</pre>'),
+ # inline references
+ 'ref': re.compile(r'(?ism)<ref[ >].*?</ref>'),
# lines that start with a space are shown in a monospace font and
- # have whitespace preserved, with wiki tags being ignored.
- 'pre': re.compile(r'(?is)<pre>.*?</pre>'),
- # lines that start with a space are shown in a monospace font and
# have whitespace preserved.
'startspace': re.compile(r'(?m)^ (.*?)$'),
# tables often have whitespace that is used to improve wiki
More information about the Pywikipedia-l
mailing list