[wp-trac] [WordPress Trac] #7056: wptexturize should leave contents of pre tags verbatim

WordPress Trac wp-trac at lists.automattic.com
Wed May 28 17:39:56 GMT 2008


#7056: wptexturize should leave contents of pre tags verbatim
------------------------+---------------------------------------------------
 Reporter:  nbachiyski  |       Owner:  anonymous            
     Type:  defect      |      Status:  new                  
 Priority:  normal      |   Milestone:  2.6                  
Component:  General     |     Version:                       
 Severity:  normal      |    Keywords:  has-patch wptexturize
------------------------+---------------------------------------------------
 Current behaviour:
  * {{{wptexturize('<pre><code></code>--</pre>')}}} gives
 {{{<pre><code></code>&#8211;</pre>}}}
 Expected behavious:
  * {{{wptexturize}}} shouldn't convert the two hyphens to a m-dash and
 should return {{{<pre><code></code>--</pre>}}}

 The problem is that {{{wptexturize}}} doesn't keep it's state if tags are
 nested.

 Also, [http://svn.automattic.com/wordpress-tests/wp-
 testcase/test_includes_formatting.php a test] was added. The patched
 version passes it.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/7056>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list