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

WordPress Trac wp-trac at lists.automattic.com
Sat Mar 3 00:33:26 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):

 azaozz, it looks like [[attachment:19855-2.patch]] still runs the contents
 of `<pre></pre>` blocks through the string replacements.  It doesn't time
 out as described in the original issue, but the text still has newlines
 inserted.  For example:

 Input:
 {{{
 <p><pre>o = "<div>test</div>";</pre></p>
 }}}

 Output (after `wpautop()` with [[attachment:19855-2.patch]]):
 {{{
 <pre>o = "
 <div>test</div>
 <p>";</pre>
 }}}

 This contradicts your earlier comment here:

 [comment:3 azaozz]:
 > Generally wpautop should be leaving the content of the `<pre>` tags
 untouched.

 Is this okay?

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


More information about the wp-trac mailing list