https://bugzilla.wikimedia.org/show_bug.cgi?id=55236
Web browser: --- Bug ID: 55236 Summary: Self closing tags Product: Pywikibot Version: unspecified Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: legoktm.wikipedia@gmail.com Classification: Unclassified Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1334/ Reported by: Anonymous user Created on: 2011-08-28 15:13:07 Subject: Self closing tags Original description: Since MW 1.16 wgHtm5 and wgWellFormedXml are turned on by default. And cosmetic_changes.py still changes things like <br> to <br />, I don't see any reason for that. There are three options we have here: * Stop making these kind of changes * Make these changes "complete" and add some tags that are not fixed (eg. <hr> to <hr />) * Do just the opposite, and let the MW fix the tags (eg. a<br/> to <br>, etc) I like the third option, because it makes the code easier to read for editors. In the attachment there's a patch to apply the third option.
python version.py: Pywikipedia [http] trunk/pywikipedia (r9462, 2011/08/28, 11:34:03) Python 2.7 (r27:82500, Aug 07 2010, 16:54:59) [GCC] config-settings: use_api = True use_api_login = True
https://bugzilla.wikimedia.org/show_bug.cgi?id=55236
--- Comment #1 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- Patch
https://bugzilla.wikimedia.org/show_bug.cgi?id=55236
--- Comment #2 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- <hr> will be replaced by mediawiki syntax ---- look at cosmetic_changes.fixHtml()
https://bugzilla.wikimedia.org/show_bug.cgi?id=55236
--- Comment #3 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- Ups, didn't remember that (since I have seen plenty of hr in templates), so you can't ignore the second line in patch.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55236
Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://sourceforge.net/p/p | |ywikipediabot/bugs/1334
https://bugzilla.wikimedia.org/show_bug.cgi?id=55236
Amir Ladsgroup ladsgroup@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|Unprioritized |Lowest CC| |ladsgroup@gmail.com Component|General |Cosmetic changes Severity|normal |enhancement
--- Comment #4 from Amir Ladsgroup ladsgroup@gmail.com --- The bug says in cosmetic changes the code needs to change <br /> to <br> instead of doing vice versa. I don't have any opinion on this
pywikipedia-bugs@lists.wikimedia.org