Make WordPress Core


Ignore:
Timestamp:
01/15/2004 11:01:21 AM (22 years ago)
Author:
saxmatt
Message:

Fix for mpts markup prob.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r775 r779  
    6868    $pee = $pee . "\n"; // just to make things a little easier, pad the end
    6969    $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 little
    71     $pee = preg_replace('!(</(?:table|ul|ol|li|pre|form|blockquote|h[1-6])>)!', "$1\n", $pee); // Space things out a little
     70    $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
    7272    $pee = preg_replace("/(\r\n|\r)/", "\n", $pee); // cross-platform newlines
    7373    $pee = preg_replace("/\n\n+/", "\n\n", $pee); // take care of duplicates
Note: See TracChangeset for help on using the changeset viewer.