[wp-trac] [WordPress Trac] #19855: Too much text in <pre> tag causes no output

WordPress Trac wp-trac at lists.automattic.com
Tue Mar 13 17:54:07 UTC 2012


#19855: Too much text in <pre> tag causes no output
--------------------------+------------------------------
 Reporter:  helenyhou     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Formatting    |     Version:  1.2
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------

Comment (by kurtpayne):

 Replying to [comment:10 kurtpayne]:
 > In [[attachment:19855-3.patch]] I added this:
 >
 > {{{
 > $pee = str_ireplace( '<pre', "\n\n<pre", $pee );
 > }}}
 >
 > to ensure that all `<pre>` tags have sufficient whitespace to be
 processed normally.

 On second thought ... is there a reason we couldn't pass `$pee` through
 `force_balance_tags()` before returning it?  Seems less hacky.

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


More information about the wp-trac mailing list