[wp-trac] [WordPress Trac] #3007: Texturize error with div-link-paragraph combination

WordPress Trac wp-trac at lists.automattic.com
Mon Aug 7 08:29:30 GMT 2006


#3007: Texturize error with div-link-paragraph combination
---------------------+------------------------------------------------------
 Reporter:  erik     |       Owner:  anonymous
     Type:  defect   |      Status:  new      
 Priority:  normal   |   Milestone:           
Component:  General  |     Version:  2.0.4    
 Severity:  normal   |    Keywords:  texturize
---------------------+------------------------------------------------------
 Texturize appears to have an issue figuring out where to put the paragraph
 tags if there are no lines between a div tag and the previous or next
 piece of text.

 (Note: This is all with the visual rich editor turned off.)


 I type this as the post content:

 {{{
 <div>
 <a href="http://example.com">example.com</a>

 Some pretty words here.
 <div>
 }}}

 The source of the post when it is viewed is this:

 {{{
                                         <div>
 <a href="http://example.com">example.com</a></p>

 <p>Test
 </div>
 }}}

 The paragraph tags don't come out quite right.

 ----

 This text, with a line between opening the div and the link:

 {{{
 <div>

 <a href="http://example.com">example.com</a>

 Some pretty words here.
 </div>
 }}}


 Gets this source:

 {{{
                                         <div>
 <p><a href="http://example.com">example.com</a></p>
 <p>Some text here.
 </div>
 }}}

 Now the first paragraph tags open and close as expected.

 ----


 Finally, if I put lines between both the open and close div tags and the
 nearest text:

 {{{
 <div>

 <a href="http://example.com">example.com</a>

 Some pretty words here.

 </div>
 }}}

 I get this source:

 {{{
                                         <div>
 <p><a href="http://example.com">example.com</a></p>
 <p>Some text here.</p>
 </div>
 }}}

 Now both come out as expected.

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


More information about the wp-trac mailing list