[wp-trac] [WordPress Trac] #64944: Generated Excerpts - Missing white space when stripping <br>s generated in paragraph block, verse block, etc.
WordPress Trac
noreply at wordpress.org
Thu Apr 9 04:50:13 UTC 2026
#64944: Generated Excerpts - Missing white space when stripping <br>s generated in
paragraph block, verse block, etc.
-------------------------------------------------+-------------------------
Reporter: addiestavlo | Owner: audrasjb
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 7.1
Component: Formatting | Version: 5.0
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests needs- | Focuses:
testing |
-------------------------------------------------+-------------------------
Comment (by yashyadav247):
== Reproduction Report and Patch Testing
=== Description
This report validates whether the issue related to missing white space
when stripping <br>s generated in paragraph block, verse block, etc.
can be reproduced.
=== Environment
- WordPress: 7.1-alpha-62161-src
- PHP: 8.2.28
- Server: nginx/1.29.0
- Database: mysqli (Server: 8.4.5 / Client: mysqlnd 8.2.28)
- Browser: Chrome 145.0.0.0
- OS: Windows 10/11
- Theme: Twenty Twenty-Five 1.4
- MU Plugins: None activated
- Plugins:
* Test Reports 1.2.1
=== Actual Results
Created a new post using Verse block, and published the post. Ran
get_the_excerpt for the post.
No spaces between the last words of one line and first words of the next.
✅
=== Supplemental Artifacts
**BEFORE**
Created verse block
[[Image(https://i.postimg.cc/fb3zr2w9/image.png)]]
Calling get_the_excerpt for the post shows no spaces in between.
[[Image(https://i.postimg.cc/XJCvp2mv/bug-reproduction.png)]]
**AFTER Patch**:
Spaces visible between the last words of one line and first words of the
next ✅
[[Image(https://i.postimg.cc/ZY36Bjz1/image.png)]]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64944#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list