Changeset 1592
- Timestamp:
- 09/04/2004 08:47:52 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/functions-formatting.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions-formatting.php
r1571 r1592 13 13 if (isset($curl{0}) && '<' != $curl{0} && $next) { // If it's not a tag 14 14 $curl = str_replace('---', '—', $curl); 15 $curl = preg_replace('/(\s)--(\s)/', '$1—$2', $curl); 15 16 $curl = str_replace('--', '–', $curl); 16 $curl = str_replace( "...", '…', $curl);17 $curl = str_replace('...', '…', $curl); 17 18 $curl = str_replace('``', '“', $curl); 18 19 … … 29 30 $curl = preg_replace("/(\S)'([^'\s])/", "$1’$2", $curl); 30 31 $curl = preg_replace('/(\s|\A)"(?!\s)/', '$1“$2', $curl); 31 $curl = preg_replace('/"(\s|\ Z)/', '”$1', $curl);32 $curl = preg_replace('/"(\s|\S|\Z)/', '”$1', $curl); 32 33 $curl = preg_replace("/'([\s.]|\Z)/", '’$1', $curl); 33 $curl = preg_replace("/ \(tm\)/i", '™', $curl);34 $curl = preg_replace("/ \(c\)/i", '©', $curl);35 $curl = preg_replace("/ \(r\)/i", '®', $curl);34 $curl = preg_replace("/ \(tm\)/i", ' ™', $curl); 35 $curl = preg_replace("/ \(c\)/i", ' ©', $curl); 36 $curl = preg_replace("/ \(r\)/i", ' ®', $curl); 36 37 $curl = str_replace("''", '”', $curl); 37 38
Note: See TracChangeset
for help on using the changeset viewer.