Changeset 4553
- Timestamp:
- 11/30/2006 02:00:40 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/formatting.php
r4511 r4553 57 57 $pee = preg_replace('|<br />\s*<br />|', "\n\n", $pee); 58 58 // Space things out a little 59 $pee = preg_replace('!(<(?:table|thead|tfoot|caption|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|form|blockquote|address|math|p|h[1-6] )[^>]*>)!', "\n$1", $pee);60 $pee = preg_replace('!(</(?:table|thead|tfoot|caption|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|form|blockquote|address|math|p|h[1-6] )>)!', "$1\n\n", $pee);59 $pee = preg_replace('!(<(?:table|thead|tfoot|caption|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|form|blockquote|address|math|p|h[1-6]|input|param|script)[^>]*>)!', "\n$1", $pee); 60 $pee = preg_replace('!(</(?:table|thead|tfoot|caption|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|form|blockquote|address|math|p|h[1-6]|input|param|script)>)!', "$1\n\n", $pee); 61 61 $pee = str_replace(array("\r\n", "\r"), "\n", $pee); // cross-platform newlines 62 62 $pee = preg_replace("/\n\n+/", "\n\n", $pee); // take care of duplicates
Note: See TracChangeset
for help on using the changeset viewer.