[wp-trac] [WordPress Trac] #36127: wp_text_diff creates wrong number of columns html table using $args

WordPress Trac noreply at wordpress.org
Sun Mar 6 11:21:54 UTC 2016


#36127: wp_text_diff creates wrong number of columns html table using $args
--------------------------+-----------------------------
 Reporter:  iamklaus      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.4.2
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 wp_text_diff creates a wrong number of columns html table. Here is my HTML
 output:


 {{{
 <table class='diff'>
 <col class='content' /><thead><tr class='diff-title'><th
 colspan='4'>Differences</th></tr>
 <tr class='diff-sub-title'>
         '''<td></td>'''<th>Old Version</th>
         '''<td></td>'''<th>New Version</th>
 </tr>
 </thead>
 <tbody>
 <tr><td class='diff-context'>asdfsadfasdfasd</td><td> </td><td class
 ='diff-context'>asdfsadfasdfasd</td></tr>
 <tr><td class='diff-deletedline'>fgsdvvdddTTfbgd fcccccdfsdcddfdvvv sdfdsf
 fgs sdfkjdnsfs fsadf asdf asdf sadf asd f <del>asd</del> f asd fas df asd
 f sad f asvd f asdfasdfasdfasd f asdf asd f asdf asdfasdfas
 </td><td> </td><td class='diff-addedline'>fgsdvvdddTTfbgd
 fcccccdfsdcddfdvvv sdfdsf fgs sdfkjdnsfs fsadf asdf asdf sadf asd f
 <ins>afsd</ins> f asd fas df asd f sad f asvd f asdfasdfasdfasd f asdf asd
 f asdf asdfasdfas
 </td></tr>
 <tr><td class='diff-deletedline'><del>dsdfsadfasdf</del> asdf asdf asdf
 sdfasd
 </td><td> </td><td class='diff-addedline'><ins>dsdfsafdfasdf</ins>
 asdf asdf asdf sdfasd
 </td></tr>
 <tr><td class='diff-context'>fsadfasdfasdfasdfasdfasdfasdfds fa sdf sadf
 sd fgsd fgdsf gs dfg dsfg sdfg d gergt ewr gerth rtzj rtzu tzu trzj dfg j
 gtn fdg ndfg b sdfghVVrthsdf g sdf dsfgsdf gdsfg  sdf g
 sdfgdsfgsdfg</td><td> </td><td class='diff-
 context'>fsadfasdfasdfasdfasdfasdfasdfds fa sdf sadf sd fgsd fgdsf gs dfg
 dsfg sdfg d gergt ewr gerth rtzj rtzu tzu trzj dfg j gtn fdg ndfg b
 sdfghVVrthsdf g sdf dsfgsdf gdsfg  sdf g sdfgdsfgsdfg</td></tr>
 <tr><td class='diff-context'>sdfgsdfgdsfgsd</td><td> </td><td class
 ='diff-context'>sdfgsdfgdsfgsd</td></tr>

 </tbody>
 </table>
 }}}

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


More information about the wp-trac mailing list