diff options
Diffstat (limited to 'inc/parser')
-rw-r--r-- | inc/parser/handler.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/inc/parser/handler.php b/inc/parser/handler.php index 58eed0c34..c397e832c 100644 --- a/inc/parser/handler.php +++ b/inc/parser/handler.php @@ -1330,7 +1330,13 @@ class Doku_Handler_Block { //remove the whole paragraph array_splice($this->calls,$i); }else{ - $this->calls[] = array('p_close',array(), $pos); + if ($this->calls[count($this->calls)-1][0] == 'section_edit') { + $tmp = array_pop($this->calls); + $this->calls[] = array('p_close',array(), $pos); + $this->calls[] = $tmp; + } else { + $this->calls[] = array('p_close',array(), $pos); + } } $this->inParagraph = FALSE; |