changeset 335 | 67bd3121a12e |
parent 326 | ab66d6d1f1f4 |
child 345 | 4ccdfeee9a11 |
--- a/includes/render.php Wed Dec 26 00:37:26 2007 -0500 +++ b/includes/render.php Thu Dec 27 22:09:33 2007 -0500 @@ -272,6 +272,9 @@ $text = RenderMan::include_templates($text); } + // Before shipping it out to the renderer, replace spaces in between headings and paragraphs: + $text = preg_replace('/<\/(h[0-9]|div|p)>([\s]+)<(h[0-9]|div|p)( .+?)?>/i', '</\\1><\\3\\4>', $text); + $text = process_tables($text); $text = RenderMan::parse_internal_links($text);