[wp-trac] [WordPress Trac] #39377: wpautop add a extra </p>

WordPress Trac noreply at wordpress.org
Tue Dec 27 22:18:24 UTC 2016


#39377: wpautop add a extra </p>
-----------------------------------------+------------------------------
 Reporter:  pbearne                      |       Owner:
     Type:  defect (bug)                 |      Status:  new
 Priority:  normal                       |   Milestone:  Awaiting Review
Component:  Formatting                   |     Version:  4.7
 Severity:  normal                       |  Resolution:
 Keywords:  has-unit-tests dev-feedback  |     Focuses:
-----------------------------------------+------------------------------
Changes (by azaozz):

 * keywords:  has-patch has-unit-tests dev-feedback => has-unit-tests dev-
     feedback


Comment:

 Looking at formatting.php.patch, we cannot add `span` to the list of
 "block tags", it is not a block :) That would introduce numerous failures
 with spans in paragraphs.

 Not even sure if this edge case can be fixed without removing the extra
 `\n` from [https://core.trac.wordpress.org/changeset/38592 here]. We can
 try adding exceptions for the more common inline tags that are before a
 block tag where both are inside another block tag, but that will be quite
 slow and complex, and will have additional edge cases.

 This looks quite similar to the nested block tags problems in autop. More
 cases are tracked in #38656. Perhaps better to close it as duplicate.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39377#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list