summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorBen Coburn <btcoburn@silicodon.net>2006-05-26 19:02:29 +0200
committerBen Coburn <btcoburn@silicodon.net>2006-05-26 19:02:29 +0200
commit29d015e31a34ce8a4f006cd608faf5041987b921 (patch)
tree7a478fa9feafd697893770bb56601ac602028a71 /inc
parent041d7a86fb8203c598f5311bcbc2ab4b7b5bb085 (diff)
downloadrpg-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')
-rw-r--r--inc/parser/handler.php8
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;