[wp-trac] [WordPress Trac] #4298: wpautop bugs

WordPress Trac noreply at wordpress.org
Thu Feb 2 13:21:57 UTC 2023


#4298: wpautop bugs
-------------------------------------------------+-------------------------
 Reporter:  Denis-de-Bernardy                    |       Owner:
                                                 |  markjaquith
     Type:  defect (bug)                         |      Status:  reopened
 Priority:  low                                  |   Milestone:  Future
                                                 |  Release
Component:  Formatting                           |     Version:  2.7
 Severity:  minor                                |  Resolution:
 Keywords:  needs-patch needs-unit-tests         |     Focuses:
  wpautop                                        |
-------------------------------------------------+-------------------------

Comment (by Mte90):

 Just tested:


 {{{
 <table
  style="width: 120px; height: 92px; text-align: left; margin-left: auto;
 margin-right: auto;"
  border="1" cellpadding="7" cellspacing="2">
   <tbody>
     <tr>
       <td><small><small style="font-family: Arial;">Once
 I saw it here, I instantly knew what I wanted. I love my new woven wood
 shades.</small></small><br>
       <small><small>- Ginny Good</small></small></td>
     </tr>
   </tbody>
 </table>
 }}}

 And now generates:

 {{{
 <p><table style="width: 120px; height: 92px; text-align: left; margin-
 left: auto; margin-right: auto;" cellspacing="2" cellpadding="7"
 border="1">
   <tbody>
     <tr>
       <td><small><small style="font-family: Arial;">Once
 I saw it here, I instantly knew what I wanted. I love my new woven wood
 shades.</small></small><br>
       <small><small>– Ginny Good</small></small></td>
     </tr>
   </tbody>
 </table></p>
 }}}

 We can see that just ignored all the HTML content and added a paragraph to
 wrap everything.

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


More information about the wp-trac mailing list