[wp-trac] [WordPress Trac] #3810: Wrong quotation mark after bracket
WordPress Trac
wp-trac at lists.automattic.com
Sun Feb 18 15:25:23 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 | Keywords:
---------------------+------------------------------------------------------
formatting.php sets a closing quotation mark after a bracket, even at the
beginning of words. Example:
A dog ("Hubertus") was sent out.
The first quotation mark will not be formatted properly. This looks
especially ugly when using the intypo plugin.
Solution: In formatting.php, replace the line
$dynamic_characters = array('/\'(\d\d(?:’|\')?s)/', '/(\s|\A|")\'/',
'/(\d+)"/', '/(\d+)\'/', '/(\S)\'([^\'\s])/', '/(\s|\A)"(?!\s)/',
'/"(\s|\S|\Z)/', '/\'([\s.]|\Z)/', '/(\d+)x(\d+)/');
with
$dynamic_characters = array('/\'(\d\d(?:’|\')?s)/', '/(\s|\A|")\'/',
'/(\d+)"/', '/(\d+)\'/', '/(\S)\'([^\'\s])/',
'/(\s|\A|\s\(|\A\()"(?!\s)/', '/"(\s|\S|\Z)/', '/\'([\s.]|\Z)/',
'/(\d+)x(\d+)/');
--
Ticket URL: <http://trac.wordpress.org/ticket/3810>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list