#52437 closed defect (bug) (invalid)
Excerpts don't have spaces between sentences if there is a paragraph break in the original content
Reported by: | larssg | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 5.6 |
Component: | Editor | Keywords: | |
Focuses: | Cc: |
Description
If a post has a paragraph after a short first sentence, the excerpt will likely contain that first sentence then the next sentence without a space between the two sentences (like this.Next sentence).
To fix this, why not simply replace <p>, <br> and other tags that create a line break with when creating the excerpt?
Change History (5)
This ticket was mentioned in Slack in #core by peterwilsoncc. View the logs.
3 years ago
This ticket was mentioned in Slack in #core by peterwilsoncc. View the logs.
3 years ago
Note: See
TracTickets for help on using
tickets.
Hi @larssg and welcome to trac!
This was discussed in a triage session today.
I wasn't able to reproduce the issue when entering content in either the classic or block editor. In both cases, a space is placed between paragraphs for auto-generated excerpts.
Are you able to provide some additional steps to help reproduce the issue.
Thanks.