https://bugzilla.wikimedia.org/show_bug.cgi?id=28642
Bug #: 28642 Summary: wrong part->commentEnd set to abbutting comments Product: MediaWiki Version: 1.17 Platform: All OS/Version: All Status: NEW Severity: normal Priority: Unprioritized Component: Page rendering AssignedTo: wikibugs-l@lists.wikimedia.org ReportedBy: a.d.be...@web.de Classification: Unclassified To be able to search for headline-closing equal sign even when there are comments between the last = and the linebreak, there are some position values appended to the recent domParts. This works well with the first comment, but as soon as a second one comes, the commentEnd value is set to $wsEnd instead of $endPos. This breaks the intended behavior when the second comment is followed by some blanks. See the difference between http://en.wikipedia.org/wiki/Special:ExpandTemplates?generate_xml=1&input=%3D%3D%20X%20%3D%3D%20%3C!--%20--%3E%20%3C!--%20--%3E%20 and http://en.wikipedia.org/wiki/Special:ExpandTemplates?generate_xml=1&input=%3D%3D%20X%20%3D%3D%20%3C!--%20--%3E%20%3C!--%20--%3E (mind the trailing whitespace). I guess it also should work at http://en.wikipedia.org/wiki/Special:ExpandTemplates?generate_xml=1&input=%3D%3D%20X%20%3D%3D%20%3C!--%20--%3E%20%3C!--%20--%3E%20%3C!--%20--%3E%20%3C!--%20--%3E%20 , but it doesn't. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l