--- a/includes/wikiformat.php Mon Feb 01 02:15:04 2010 -0500
+++ b/includes/wikiformat.php Mon Feb 01 02:22:54 2010 -0500
@@ -103,7 +103,7 @@
$parser_class = "Carpenter_Parse_" . ucwords($this->parser);
$renderer_class = "Carpenter_Render_" . ucwords($this->renderer);
- // empty?
+ // empty? (don't remove this. the parser will shit bricks later about rules returning empty strings)
if ( trim($text) === '' )
return $text;
@@ -159,7 +159,7 @@
$text = $this->perform_render_step($text, $rule, $parser, $renderer);
if ( empty($text) )
{
- trigger_error("Wikitext was empty after rule \"$rule\"; restoring backup", E_USER_WARNING);
+ trigger_error("Wikitext was completely empty after rule \"$rule\"; restoring backup", E_USER_WARNING);
$text = $text_before;
}
unset($text_before);
@@ -178,8 +178,12 @@
}
}
}
+
+ RenderMan::tag_strip_push('final', $text, $final_stripdata);
}
+ RenderMan::tag_unstrip('final', $text, $final_stripdata);
+
// run posthooks
foreach ( $this->hooks as $hook )
{