[wp-trac] Re: [WordPress Trac] #3810: Wrong quotation mark after bracket

WordPress Trac wp-trac at lists.automattic.com
Sun Feb 18 16:33:01 GMT 2007

#3810: Wrong quotation mark after bracket
 Reporter:  josepo   |        Owner:  anonymous
     Type:  defect   |       Status:  new      
 Priority:  normal   |    Milestone:  2.1.2    
Component:  General  |      Version:           
 Severity:  normal   |   Resolution:           
 Keywords:           |  
Comment (by josepo):

 This solution is a whole lot better yet (covers all expressions where the
 delimiting blank does not immediately precede or follow the quotation

 $dynamic_characters = array('/\'(\d\d(?:’|\')?s)/', '/(\s|\A|")\'/',
 '/(\d+)"/', '/(\d+)\'/', '/(\S)\'([^\'\s])/',
 '/(\s|\A|\s\S|\A\S)"(?!(\s|\A|\S\s|\S\A))/', '/"(\s|\S|\Z)/',
 '/\'([\s.]|\Z)/', '/(\d+)x(\d+)/');


 <p>A dog named "<a href="http://...">Hubertus</a>":</p>

 results in the second quotation mark turning the wrong way. This is fixed
 by the solution shown above. (Of course, it also covers the bracket

Ticket URL: <http://trac.wordpress.org/ticket/3810#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list