[wp-trac] [WordPress Trac] #38656: wpautop incorrectly handling paragraphs within block elements
WordPress Trac
noreply at wordpress.org
Fri Nov 4 06:10:40 UTC 2016
#38656: wpautop incorrectly handling paragraphs within block elements
-------------------------+-------------------------------------------------
Reporter: pento | Owner:
Type: defect | Status: new
(bug) | Milestone: Future Release
Priority: normal | Version:
Component: Formatting | Keywords: has-patch needs-unit-tests needs-
Severity: normal | testing
Focuses: |
-------------------------+-------------------------------------------------
When there are two line breaks within a block element, `wpautop()` will
replace it with `</p><p>`, but the corresponding opening and closing tags
won't exist.
For example, `<div>a\n\nb</div>` will produce `<div>a</p><p>b</div>`, when
it really should produce `<div>\n<p>a</p>\n<p>b</p>\n</div>`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38656>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list