http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9246
Revision: 9246 Author: xqt Date: 2011-05-15 15:42:46 +0000 (Sun, 15 May 2011) Log Message: ----------- replacements to remove the "\x1d" (group separator) and "\x0c" (form feed) characters requested by bug #3126855
Modified Paths: -------------- trunk/pywikipedia/djvutext.py
Modified: trunk/pywikipedia/djvutext.py =================================================================== --- trunk/pywikipedia/djvutext.py 2011-05-13 04:04:55 UTC (rev 9245) +++ trunk/pywikipedia/djvutext.py 2011-05-15 15:42:46 UTC (rev 9246) @@ -138,7 +138,9 @@
# convert to wikisyntax # this adds a second line feed, which makes a new paragraph - text = text.replace('', "\n") + text = text.replace('', "\n") # US /x1F + text = text.replace('', "\n") # GS /x1D + text = text.replace('', "\n") # FF /x0C
# only save if something was changed # automatically ask if overwriting an existing page
pywikipedia-svn@lists.wikimedia.org