| @@ -1897,9 +1897,9 @@ discard block | ||
| 1897 | 1897 | } | 
| 1898 | 1898 | |
| 1899 | 1899 | $pos_end = \min( | 
| 1900 | - UTF8::strpos($text, ' ', $l, $this->encoding), | |
| 1901 | - UTF8::strpos($text, '.', $l, $this->encoding) | |
| 1902 | - ) - $pos_start; | |
| 1900 | + UTF8::strpos($text, ' ', $l, $this->encoding), | |
| 1901 | + UTF8::strpos($text, '.', $l, $this->encoding) | |
| 1902 | + ) - $pos_start; | |
| 1903 | 1903 | |
| 1904 | 1904 |        if (!$pos_end || $pos_end <= 0) { | 
| 1905 | 1905 | $extract = $replacerForSkippedText . \ltrim( | 
| @@ -1939,9 +1939,9 @@ discard block | ||
| 1939 | 1939 | |
| 1940 | 1940 |        if ($pos_end) { | 
| 1941 | 1941 | $extract = \rtrim( | 
| 1942 | - UTF8::substr($text, 0, $pos_end, $this->encoding), | |
| 1943 | - $trimChars | |
| 1944 | - ) . $replacerForSkippedText; | |
| 1942 | + UTF8::substr($text, 0, $pos_end, $this->encoding), | |
| 1943 | + $trimChars | |
| 1944 | + ) . $replacerForSkippedText; | |
| 1945 | 1945 |        } else { | 
| 1946 | 1946 | $extract = $text; | 
| 1947 | 1947 | } |