Fix bug #28642 - wrong part->commentEnd set to abbutting comments
authorMark A. Hershberger <mah@users.mediawiki.org>
Thu, 21 Apr 2011 22:20:48 +0000 (22:20 +0000)
committerMark A. Hershberger <mah@users.mediawiki.org>
Thu, 21 Apr 2011 22:20:48 +0000 (22:20 +0000)
commitbf2ae270b5050fa537156e6558bd277ea1198233
tree44c2bd1691920eda1b374ac92b0d4038c4196499
parentcfc9b193a1799baf0e60c40a56428de85c7c27f9
Fix bug #28642 - wrong part->commentEnd set to abbutting comments

    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.

Patch from Bergi
includes/parser/Preprocessor_DOM.php