diff options
author | Andreas Gohr <andi@splitbrain.org> | 2006-03-11 21:10:15 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2006-03-11 21:10:15 +0100 |
commit | 3e55d035ce3b611d07546b63ea8bf6315a43e617 (patch) | |
tree | f48a4b65ad0a3ced1b52773d5aaf615c2fb3cb3f | |
parent | cb5796db0b144d41979202e54709d40030bd8df7 (diff) | |
download | rpg-3e55d035ce3b611d07546b63ea8bf6315a43e617.tar.gz rpg-3e55d035ce3b611d07546b63ea8bf6315a43e617.tar.bz2 |
empty paragraph fixup for XHTML renderer
as discussed on the mailinglist
darcs-hash:20060311201015-7ad00-2eef847a38e711411be8fbac41c5a2cc7328886f.gz
-rw-r--r-- | inc/parser/xhtml.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php index bb7adf1da..2335c8b65 100644 --- a/inc/parser/xhtml.php +++ b/inc/parser/xhtml.php @@ -93,6 +93,9 @@ class Doku_Renderer_xhtml extends Doku_Renderer { if($this->info['toc']){ $this->doc = $this->render_TOC().$this->doc; } + + // make sure there are no empty paragraphs + $this->doc = preg_replace('#<p(>| .*?>)\s*</p>#','',$this->doc); } /** |