includes/render.php
changeset 335 67bd3121a12e
parent 326 ab66d6d1f1f4
child 345 4ccdfeee9a11
equal deleted inserted replaced
334:c72b545f1304 335:67bd3121a12e
   269       $i++;
   269       $i++;
   270       if ( $i == 5 )
   270       if ( $i == 5 )
   271         break;
   271         break;
   272       $text = RenderMan::include_templates($text);
   272       $text = RenderMan::include_templates($text);
   273     }
   273     }
       
   274     
       
   275     // Before shipping it out to the renderer, replace spaces in between headings and paragraphs:
       
   276     $text = preg_replace('/<\/(h[0-9]|div|p)>([\s]+)<(h[0-9]|div|p)( .+?)?>/i', '</\\1><\\3\\4>', $text);
   274     
   277     
   275     $text = process_tables($text);
   278     $text = process_tables($text);
   276     $text = RenderMan::parse_internal_links($text);
   279     $text = RenderMan::parse_internal_links($text);
   277     
   280     
   278     $wiki =& Text_Wiki::singleton('Mediawiki');
   281     $wiki =& Text_Wiki::singleton('Mediawiki');