Ticket #3854: 3854.diff
File 3854.diff, 962 bytes (added by , 18 years ago) |
---|
-
wp-includes/formatting.php
56 56 $pee = $pee . "\n"; // just to make things a little easier, pad the end 57 57 $pee = preg_replace('|<br />\s*<br />|', "\n\n", $pee); 58 58 // Space things out a little 59 $allblocks = '(?:table|thead|tfoot|caption|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|form|map|area|blockquote|address|math|style| script|object|input|param|p|h[1-6])';59 $allblocks = '(?:table|thead|tfoot|caption|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|form|map|area|blockquote|address|math|style|object|input|param|p|h[1-6])'; 60 60 $pee = preg_replace('!(<' . $allblocks . '[^>]*>)!', "\n$1", $pee); 61 61 $pee = preg_replace('!(</' . $allblocks . '>)!', "$1\n\n", $pee); 62 62 $pee = str_replace(array("\r\n", "\r"), "\n", $pee); // cross-platform newlines