diff options
author | Ben Coburn <btcoburn@silicodon.net> | 2006-05-26 19:02:29 +0200 |
---|---|---|
committer | Ben Coburn <btcoburn@silicodon.net> | 2006-05-26 19:02:29 +0200 |
commit | 29d015e31a34ce8a4f006cd608faf5041987b921 (patch) | |
tree | 7a478fa9feafd697893770bb56601ac602028a71 /inc/parser/handler.php | |
parent | 041d7a86fb8203c598f5311bcbc2ab4b7b5bb085 (diff) | |
download | rpg-29d015e31a34ce8a4f006cd608faf5041987b921.tar.gz rpg-29d015e31a34ce8a4f006cd608faf5041987b921.tar.bz2 |
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
Diffstat (limited to 'inc/parser/handler.php')
-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; |