|
@@ 2344-2347 (lines=4) @@
|
| 2341 |
|
|
| 2342 |
|
private function inHeadMode( $token, $value, $attribs = null, $selfclose = false ) { |
| 2343 |
|
if ( $token === 'text' ) { |
| 2344 |
|
if ( preg_match( '/^[\x09\x0A\x0C\x0D\x20]+/', $value, $matches ) ) { |
| 2345 |
|
$this->stack->insertText( $matches[0] ); |
| 2346 |
|
$value = substr( $value, strlen( $matches[0] ) ); |
| 2347 |
|
} |
| 2348 |
|
if ( strlen( $value ) === 0 ) { |
| 2349 |
|
return true; // All text handled. |
| 2350 |
|
} |
|
@@ 3120-3123 (lines=4) @@
|
| 3117 |
|
|
| 3118 |
|
private function inColumnGroupMode( $token, $value, $attribs = null, $selfclose = false ) { |
| 3119 |
|
if ( $token === 'text' ) { |
| 3120 |
|
if ( preg_match( '/^[\x09\x0A\x0C\x0D\x20]+/', $value, $matches ) ) { |
| 3121 |
|
$this->stack->insertText( $matches[0] ); |
| 3122 |
|
$value = substr( $value, strlen( $matches[0] ) ); |
| 3123 |
|
} |
| 3124 |
|
if ( strlen( $value ) === 0 ) { |
| 3125 |
|
return true; // All text handled. |
| 3126 |
|
} |