[wp-cvs] wordpress/wp-includes functions-formatting.php,1.41,1.42
Matthew Mullenweg
saxmatt at users.sourceforge.net
Sat Sep 4 20:47:54 UTC 2004
Update of /cvsroot/cafelog/wordpress/wp-includes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19133/wp-includes
Modified Files:
functions-formatting.php
Log Message:
Texturize fix.
Index: functions-formatting.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-includes/functions-formatting.php,v
retrieving revision 1.41
retrieving revision 1.42
diff -C2 -d -r1.41 -r1.42
*** functions-formatting.php 28 Aug 2004 08:40:13 -0000 1.41
--- functions-formatting.php 4 Sep 2004 20:47:52 -0000 1.42
***************
*** 13,18 ****
if (isset($curl{0}) && '<' != $curl{0} && $next) { // If it's not a tag
$curl = str_replace('---', '—', $curl);
$curl = str_replace('--', '–', $curl);
! $curl = str_replace("...", '…', $curl);
$curl = str_replace('``', '“', $curl);
--- 13,19 ----
if (isset($curl{0}) && '<' != $curl{0} && $next) { // If it's not a tag
$curl = str_replace('---', '—', $curl);
+ $curl = preg_replace('/(\s)--(\s)/', '$1—$2', $curl);
$curl = str_replace('--', '–', $curl);
! $curl = str_replace('...', '…', $curl);
$curl = str_replace('``', '“', $curl);
***************
*** 29,37 ****
$curl = preg_replace("/(\S)'([^'\s])/", "$1’$2", $curl);
$curl = preg_replace('/(\s|\A)"(?!\s)/', '$1“$2', $curl);
! $curl = preg_replace('/"(\s|\Z)/', '”$1', $curl);
$curl = preg_replace("/'([\s.]|\Z)/", '’$1', $curl);
! $curl = preg_replace("/\(tm\)/i", '™', $curl);
! $curl = preg_replace("/\(c\)/i", '©', $curl);
! $curl = preg_replace("/\(r\)/i", '®', $curl);
$curl = str_replace("''", '”', $curl);
--- 30,38 ----
$curl = preg_replace("/(\S)'([^'\s])/", "$1’$2", $curl);
$curl = preg_replace('/(\s|\A)"(?!\s)/', '$1“$2', $curl);
! $curl = preg_replace('/"(\s|\S|\Z)/', '”$1', $curl);
$curl = preg_replace("/'([\s.]|\Z)/", '’$1', $curl);
! $curl = preg_replace("/ \(tm\)/i", ' ™', $curl);
! $curl = preg_replace("/ \(c\)/i", ' ©', $curl);
! $curl = preg_replace("/ \(r\)/i", ' ®', $curl);
$curl = str_replace("''", '”', $curl);
More information about the cvs
mailing list