[wp-trac] [WordPress Trac] #52437: Excerpts don't have spaces between sentences if there is a paragraph break in the original content

WordPress Trac noreply at wordpress.org
Wed Feb 3 14:57:30 UTC 2021


#52437: Excerpts don't have spaces between sentences if there is a paragraph break
in the original content
--------------------------+-----------------------------
 Reporter:  larssg        |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  5.6
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 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?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52437>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list