Changeset 779 for trunk/wp-includes/functions.php
- Timestamp:
- 01/15/2004 11:01:21 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r775 r779 68 68 $pee = $pee . "\n"; // just to make things a little easier, pad the end 69 69 $pee = preg_replace('|<br />\s*<br />|', "\n\n", $pee); 70 $pee = preg_replace('!(<(?:table| ul|ol|li|pre|form|blockquote|h[1-6])[^>]*>)!', "\n$1", $pee); // Space things out a little71 $pee = preg_replace('!(</(?:table| ul|ol|li|pre|form|blockquote|h[1-6])>)!', "$1\n", $pee); // Space things out a little70 $pee = preg_replace('!(<(?:table|tr|td|th|div|ul|ol|li|pre|select|form|blockquote|p|h[1-6])[^>]*>)!', "\n$1", $pee); // Space things out a little 71 $pee = preg_replace('!(</(?:table|tr|td|th|div|ul|ol|li|pre|select|form|blockquote|p|h[1-6])>)!', "$1\n", $pee); // Space things out a little 72 72 $pee = preg_replace("/(\r\n|\r)/", "\n", $pee); // cross-platform newlines 73 73 $pee = preg_replace("/\n\n+/", "\n\n", $pee); // take care of duplicates
Note: See TracChangeset
for help on using the changeset viewer.