Make WordPress Core

Opened 3 months ago

#52437 new defect (bug)

Excerpts don't have spaces between sentences if there is a paragraph break in the original content

Reported by: larssg Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.6
Component: General Keywords:
Focuses: Cc:


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 &nbsp; when creating the excerpt?

Change History (0)

Note: See TracTickets for help on using tickets.