OK, I'm done with the preg_replace() in the paragraph parser. It's too buggy. Replaced with preg_match_all()/str_replace_once().
</div> <!-- div#ajaxEditContainer -->
</td>
</tr>
</table>
</div> <!-- div#content-wrapper -->
</td>
</tr>
</table>
<div id="footer">
<b>{COPYRIGHT}</b><br />
[[EnanoPoweredLinkLong]] | <!-- BEGINNOT stupid_mode --><a href="http://validator.w3.org/check?uri=referer">{lang:page_w3c_valid_xhtml11}</a> | <a href="http://jigsaw.w3.org/css-validator/validator?uri=referer">{lang:page_w3c_valid_css}</a> | <!-- END stupid_mode -->[[StatsLong]]
<!-- Do not remove this line or scheduled tasks will not run. -->
<img alt=" " src="{SCRIPTPATH}/cron.php" width="1" height="1" />
</div>
{JS_FOOTER}
</body>
</html>