diff options
-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); } /** |