| @@ 436-439 (lines=4) @@ | ||
| 433 | $str = preg_replace('| +|', ' ', $str); |
|
| 434 | ||
| 435 | // Standardize newlines |
|
| 436 | if (strpos($str, "\r") !== FALSE) |
|
| 437 | { |
|
| 438 | $str = str_replace(array("\r\n", "\r"), "\n", $str); |
|
| 439 | } |
|
| 440 | ||
| 441 | // If the current word is surrounded by {unwrap} tags we'll |
|
| 442 | // strip the entire chunk and replace it with a marker. |
|
| @@ 1182-1185 (lines=4) @@ | ||
| 1179 | } |
|
| 1180 | ||
| 1181 | // Standardize newlines |
|
| 1182 | if (strpos($str, "\r") !== FALSE) |
|
| 1183 | { |
|
| 1184 | $str = str_replace(array("\r\n", "\r"), "\n", $str); |
|
| 1185 | } |
|
| 1186 | ||
| 1187 | // Reduce multiple spaces at end of line |
|
| 1188 | $str = preg_replace('| +\n|', "\n", $str); |
|
| @@ 1510-1513 (lines=4) @@ | ||
| 1507 | $str = preg_replace(array('| +|', '/\x00+/'), array(' ', ''), $str); |
|
| 1508 | ||
| 1509 | // Standardize newlines |
|
| 1510 | if (strpos($str, "\r") !== FALSE) |
|
| 1511 | { |
|
| 1512 | $str = str_replace(array("\r\n", "\r"), "\n", $str); |
|
| 1513 | } |
|
| 1514 | ||
| 1515 | $escape = '='; |
|
| 1516 | $output = ''; |
|
| @@ 116-119 (lines=4) @@ | ||
| 113 | } |
|
| 114 | ||
| 115 | // Standardize Newlines to make matching easier |
|
| 116 | if (strpos($str, "\r") !== FALSE) |
|
| 117 | { |
|
| 118 | $str = str_replace(array("\r\n", "\r"), "\n", $str); |
|
| 119 | } |
|
| 120 | ||
| 121 | // Reduce line breaks. If there are more than two consecutive linebreaks |
|
| 122 | // we'll compress them down to a maximum of two since there's no benefit to more. |
|