|
@@ 2171-2174 (lines=4) @@
|
| 2168 |
|
|
| 2169 |
|
private function inHeadMode( $token, $value, $attribs = null, $selfclose = false ) { |
| 2170 |
|
if ( $token === 'text' ) { |
| 2171 |
|
if ( preg_match( '/^[\x09\x0A\x0C\x0D\x20]+/', $value, $matches ) ) { |
| 2172 |
|
$this->stack->insertText( $matches[0] ); |
| 2173 |
|
$value = substr( $value, strlen( $matches[0] ) ); |
| 2174 |
|
} |
| 2175 |
|
if ( strlen( $value ) === 0 ) { |
| 2176 |
|
return true; // All text handled. |
| 2177 |
|
} |
|
@@ 2892-2895 (lines=4) @@
|
| 2889 |
|
|
| 2890 |
|
private function inColumnGroupMode( $token, $value, $attribs = null, $selfclose = false ) { |
| 2891 |
|
if ( $token === 'text' ) { |
| 2892 |
|
if ( preg_match( '/^[\x09\x0A\x0C\x0D\x20]+/', $value, $matches ) ) { |
| 2893 |
|
$this->stack->insertText( $matches[0] ); |
| 2894 |
|
$value = substr( $value, strlen( $matches[0] ) ); |
| 2895 |
|
} |
| 2896 |
|
if ( strlen( $value ) === 0 ) { |
| 2897 |
|
return true; // All text handled. |
| 2898 |
|
} |