When imported content does not contain space after period trimmed summary is rendered incorrectly

Created on 28 February 2024, 4 months ago
Updated 7 June 2024, 9 days ago

Where there is no space between fullstops on imported node content, view display does not trim as described

This took a little while for me to try and debug but as you can see from the screenshots appear like a bug.

e.g. // If the first paragraph is too long, split at the end of a sentence.

So in text.module you have

// If the first paragraph is too long, split at the end of a sentence.
$break_points[] = ['. ' => 1, '! ' => 1, '? ' => 1, '。' => 0, '؟ ' => 1];
Not seen 。before

adding '.' => 0, works for me. e.g.

$break_points[] = ['. ' => 1, '! ' => 1, '? ' => 1, '。' => 0, '.' => 0, '؟ ' => 1];
For my purposes I can change to following, but the dr. problem would still exist.

e.g.

Please see screen shots attached.

πŸ› Bug report
Status

Active

Version

11.0 πŸ”₯

Component
TextΒ  β†’

Last updated 9 days ago

Created by

πŸ‡¬πŸ‡§United Kingdom 2dareis2do

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024