Skip to content
Snippets Groups Projects
Commit 3e55d035 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

empty paragraph fixup for XHTML renderer

as discussed on the mailinglist

darcs-hash:20060311201015-7ad00-2eef847a38e711411be8fbac41c5a2cc7328886f.gz
parent cb5796db
No related branches found
No related tags found
No related merge requests found
...@@ -93,6 +93,9 @@ class Doku_Renderer_xhtml extends Doku_Renderer { ...@@ -93,6 +93,9 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
if($this->info['toc']){ if($this->info['toc']){
$this->doc = $this->render_TOC().$this->doc; $this->doc = $this->render_TOC().$this->doc;
} }
// make sure there are no empty paragraphs
$this->doc = preg_replace('#<p(>| .*?>)\s*</p>#','',$this->doc);
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment