[wp-trac] [WordPress Trac] #15918: wpautop() breaks inline tags on the same line as block tags

WordPress Trac wp-trac at lists.automattic.com
Wed Apr 11 15:22:31 UTC 2012


#15918: wpautop() breaks inline tags on the same line as block tags
-------------------------------+-----------------------------
 Reporter:  retrib             |       Owner:  dunno
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Future Release
Component:  Formatting         |     Version:  3.0.3
 Severity:  major              |  Resolution:
 Keywords:  3.2-early wpautop  |
-------------------------------+-----------------------------

Comment (by WraithKenny):

 Note that when striping the linebreaks as suggested, moving back and forth
 between Visual and HTML will add them back.

 {{{
 <div><a href="#">WP IZ ASSUM</a><div>NO IT'S BUGGY AS HELL</div></div>
 }}}
 becomes the problem case:
 {{{
 <div><a href="#">WP IZ ASSUM</a>
 <div>NO IT'S BUGGY AS HELL</div>
 </div>
 }}}
 and after another toggle becomes

 {{{
 <div>

 <a href="#">WP IZ ASSUM</a>
 <div>NO IT'S BUGGY AS HELL</div>
 </div>
 }}}

 but this is related to the javascript not wpautop. Still, it should
 probably be considered.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15918#comment:12>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list