Drupal core is moving towards using a โmainโ branch. As an interim step, a new 11.x branch has been opened โ , as Drupal.org infrastructure cannot currently fully support a branch named
main
. New developments and disruptive changes should now be targeted for the11.x
branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule โ and the Allowed changes during the Drupal core release cycle โ .- ๐ณ๐ฟNew Zealand RoSk0 Wellington
I don't think it's fair to call #1482178: text_summary does not break on word boundaries if the first sentence is longer than the length of the summary being produced โ duplicate of this one. To me it feels like they are talking about related, but different things.
The problem we see with
text_trimmed
formatter is that it breaks works when trimming body field with HTML. We have no
there mostly.Tested the patch from #20 and it haven't changed anything for us - we still see broken words at the end of the field output where the text was trimmed.
- ๐ฌ๐งUnited Kingdom 2dareis2do
I have a similar issue where when importing content. if space does not follow then period then it will be be not be trimmed 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.
I may try and create a separate issue for this.