Index: trunk/phase3/includes/parser/Preprocessor_Hash.php |
— | — | @@ -272,7 +272,7 @@ |
273 | 273 | // Search backwards for leading whitespace |
274 | 274 | $wsStart = $i ? ( $i - strspn( $revText, ' ', strlen( $text ) - $i ) ) : 0; |
275 | 275 | // Search forwards for trailing whitespace |
276 | | - // $wsEnd will be the position of the last space |
| 276 | + // $wsEnd will be the position of the last space (or the '>' if there's none) |
277 | 277 | $wsEnd = $endPos + 2 + strspn( $text, ' ', $endPos + 3 ); |
278 | 278 | // Eat the line if possible |
279 | 279 | // TODO: This could theoretically be done if $wsStart == 0, i.e. for comments at |
Index: trunk/phase3/includes/parser/Preprocessor_DOM.php |
— | — | @@ -316,7 +316,7 @@ |
317 | 317 | // Search backwards for leading whitespace |
318 | 318 | $wsStart = $i ? ( $i - strspn( $revText, ' ', strlen( $text ) - $i ) ) : 0; |
319 | 319 | // Search forwards for trailing whitespace |
320 | | - // $wsEnd will be the position of the last space |
| 320 | + // $wsEnd will be the position of the last space (or the '>' if there's none) |
321 | 321 | $wsEnd = $endPos + 2 + strspn( $text, ' ', $endPos + 3 ); |
322 | 322 | // Eat the line if possible |
323 | 323 | // TODO: This could theoretically be done if $wsStart == 0, i.e. for comments at |