Page MenuHomePhabricator

bug28642_abutting_comments.patch

Authored By
bzimport
Nov 21 2014, 11:35 PM
Size
842 B
Referenced Files
None
Subscribers
None

bug28642_abutting_comments.patch

Index: Preprocessor_DOM.php
===================================================================
--- Preprocessor_DOM.php (Revision 83589)
+++ Preprocessor_DOM.php (Arbeitskopie)
@@ -343,13 +343,11 @@
if ( $stack->top ) {
$part = $stack->top->getCurrentPart();
- if ( isset( $part->commentEnd ) && $part->commentEnd == $wsStart - 1 ) {
- // Comments abutting, no change in visual end
- $part->commentEnd = $wsEnd;
- } else {
+ $part->commentEnd = $endPos;
+ if ( ! (isset( $part->commentEnd ) && $part->commentEnd == $wsStart - 1 )) {
$part->visualEnd = $wsStart;
- $part->commentEnd = $endPos;
}
+ // Else comments abutting, no change in visual end
}
$i = $endPos + 1;
$inner = substr( $text, $startPos, $endPos - $startPos + 1 );

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
7401
Default Alt Text
bug28642_abutting_comments.patch (842 B)

Event Timeline