From 2a27e99ac0428ee74f330df0fff0415417765768 Mon Sep 17 00:00:00 2001 From: andi Date: Fri, 29 Apr 2005 22:54:36 +0200 Subject: more cleanup darcs-hash:20050429205436-9977f-762f3ded6f93cfb3e068f3acdc1bb80690ad658b.gz --- inc/parser/handler.php | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'inc/parser/handler.php') diff --git a/inc/parser/handler.php b/inc/parser/handler.php index 1d7af1864..91d884345 100644 --- a/inc/parser/handler.php +++ b/inc/parser/handler.php @@ -1147,7 +1147,11 @@ class Doku_Handler_Section { } -//------------------------------------------------------------------------ +/** + * Handler for paragraphs + * + * @author Harry Fuecks + */ class Doku_Handler_Block { var $calls = array(); @@ -1186,6 +1190,13 @@ class Doku_Handler_Block { 'footnote_close','section_close', ); + /** + * Close a paragraph if needed + * + * This function makes sure there are no empty paragraphs on the stack + * + * @author Andreas Gohr + */ function closeParagraph($pos){ // look back if there was any content - we don't want empty paragraphs $content = ''; @@ -1208,6 +1219,13 @@ class Doku_Handler_Block { } } + /** + * Processes the whole instruction stack to open and close paragraphs + * + * @author Harry Fuecks + * @author Andreas Gohr + * @todo This thing is really messy and should be rewritten + */ function process($calls) { foreach ( $calls as $key => $call ) { @@ -1371,6 +1389,7 @@ class Doku_Handler_Block { $this->inParagraph = $state[1]; } } + //------------------------------------------------------------------------ define('DOKU_TOC_OPEN',1); define('DOKU_TOCBRANCH_OPEN',2); -- cgit v1.2.3