| @@ 416-423 (lines=8) @@ | ||
| 413 | $endPos += 2; |
|
| 414 | } |
|
| 415 | ||
| 416 | if ( $stack->top ) { |
|
| 417 | $part = $stack->top->getCurrentPart(); |
|
| 418 | if ( !( isset( $part->commentEnd ) && $part->commentEnd == $wsStart - 1 ) ) { |
|
| 419 | $part->visualEnd = $wsStart; |
|
| 420 | } |
|
| 421 | // Else comments abutting, no change in visual end |
|
| 422 | $part->commentEnd = $endPos; |
|
| 423 | } |
|
| 424 | $i = $endPos + 1; |
|
| 425 | $inner = substr( $text, $startPos, $endPos - $startPos + 1 ); |
|
| 426 | $accum .= '<comment>' . htmlspecialchars( $inner ) . '</comment>'; |
|
| @@ 351-358 (lines=8) @@ | ||
| 348 | $endPos += 2; |
|
| 349 | } |
|
| 350 | ||
| 351 | if ( $stack->top ) { |
|
| 352 | $part = $stack->top->getCurrentPart(); |
|
| 353 | if ( !( isset( $part->commentEnd ) && $part->commentEnd == $wsStart - 1 ) ) { |
|
| 354 | $part->visualEnd = $wsStart; |
|
| 355 | } |
|
| 356 | // Else comments abutting, no change in visual end |
|
| 357 | $part->commentEnd = $endPos; |
|
| 358 | } |
|
| 359 | $i = $endPos + 1; |
|
| 360 | $inner = substr( $text, $startPos, $endPos - $startPos + 1 ); |
|
| 361 | $accum[] = [ 'comment', [ $inner ] ]; |
|