[Pywikipedia-l] SVN: [4837] trunk/pywikipedia/fixes.py

wikipedian at svn.wikimedia.org wikipedian at svn.wikimedia.org
Wed Jan 9 17:23:17 UTC 2008


Revision: 4837
Author:   wikipedian
Date:     2008-01-09 17:23:17 +0000 (Wed, 09 Jan 2008)

Log Message:
-----------
added exceptions for syntax-safe

Modified Paths:
--------------
    trunk/pywikipedia/fixes.py

Modified: trunk/pywikipedia/fixes.py
===================================================================
--- trunk/pywikipedia/fixes.py	2008-01-09 17:13:17 UTC (rev 4836)
+++ trunk/pywikipedia/fixes.py	2008-01-09 17:23:17 UTC (rev 4837)
@@ -221,6 +221,14 @@
 			# this will cause mistakes.
 			(r'\[(?P<url>https?://[^\|\] ]+?(\.pdf|\.html|\.htm|\.php|\.asp|\.aspx|\.jsp)) *\| *(?P<label>[^\|\]]+?)\]', r'[\g<url> \g<label>]'),
 		],
+        'exceptions': {
+            'inside-tags': [
+                'nowiki',
+                'comment',
+                'math',
+                'pre',
+            ],
+        }
 	},
 
 	'case-de': { # German upper / lower case issues





More information about the Pywikipedia-l mailing list