Bugs item #2814515, was opened at 2009-06-30 13:30 Message generated for change (Comment added) made by xqt You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2814515...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: other Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Replacement of in timelines
Initial Comment: Replacing a non-breaking space ( ) using cosmetic-changes in a timeline distorts the timeline.
Example: http://de.wikipedia.org/w/index.php?title=Palma&diff=61695398&oldid=...
Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]
----------------------------------------------------------------------
Comment By: xqt (xqt) Date: 2009-06-30 16:58
Message: This should do the job:
def removeNonBreakingSpaceBeforePercent(self, text): ''' Newer MediaWiki versions automatically place a non-breaking space in front of a percent sign, so it is no longer required to place it manually. ''' text = wikipedia.replaceExcept(text, r'(\d) %', r'\1 %', ['timeline']) return text
----------------------------------------------------------------------
Comment By: xqt (xqt) Date: 2009-06-30 15:47
Message: Sorry I am wrong! Indeed It is not a good idea to replace this between <timeline>-tags. Sorry again.
----------------------------------------------------------------------
Comment By: xqt (xqt) Date: 2009-06-30 15:42
Message: This concerns to non-breaking space before a %-sign. This behavior is quite right because MediaWiki software replaces blanks between a number and a %-sign with non-breaking spaces itself. This request could be closed.
btw this is the right URL: http://de.wikipedia.org/w/index.php?title=Palma&diff=prev&oldid=6169...
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2814515...
pywikipedia-bugs@lists.wikimedia.org