Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Automatically generated teaser of Japanese language often breaks, because multibyte character split occurred. I fixed it, and please apply the patch.
When concisely saying;
'。' == "\xE3\x80\x82" == 3 bytes
line 187 at node.module;
before
$breakpoints = array('</p>' => 4, '<br />' => 0, '<br>' => 0, "\n" => 0, '. ' => 1, '! ' => 1, '? ' => 1, '。' => 1, '?? ' => 1);
after
$breakpoints = array('</p>' => 4, '<br />' => 0, '<br>' => 0, "\n" => 0, '. ' => 1, '! ' => 1, '? ' => 1, '。' => 3, '?? ' => 1);
Comment | File | Size | Author |
---|---|---|---|
split_fix.patch.txt | 712 bytes | Takafumi |
Comments
Comment #1
Takafumi CreditAttribution: Takafumi commentedfixed