From 29d015e31a34ce8a4f006cd608faf5041987b921 Mon Sep 17 00:00:00 2001 From: Ben Coburn Date: Fri, 26 May 2006 19:02:29 +0200 Subject: update header test cases 20060526 Also resolves a small p_close anomaly introduced when section edits were given their own instruction. darcs-hash:20060526170229-05dcb-9509e939b923fe966b901fe5d90ba499828a56c1.gz --- inc/parser/handler.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'inc/parser') 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; -- cgit v1.2.3