From 98c868589ee0757f176239cf289cbd007bb74852 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Fri, 17 Feb 2006 23:20:40 +0100 Subject: file cleanups This patch cleans up the source code to satisfy the coding guidelines (see http://wiki.splitbrain.org/wiki:development#coding_style) It converts files to UNIX lineendings and removes tabs and trailing whitespace. Not all files were cleaned yet. darcs-hash:20060217222040-7ad00-bba3d2bee3b5aa7cbb5184258abd50805cd071bf.gz --- inc/parser/xhtmlsummary.php | 170 ++++++++++++++++++++++---------------------- 1 file changed, 85 insertions(+), 85 deletions(-) (limited to 'inc/parser/xhtmlsummary.php') diff --git a/inc/parser/xhtmlsummary.php b/inc/parser/xhtmlsummary.php index eeb684e57..669fa46e3 100644 --- a/inc/parser/xhtmlsummary.php +++ b/inc/parser/xhtmlsummary.php @@ -1,85 +1,85 @@ -doc .= DOKU_LF.'
'.DOKU_LF; - } - - function document_end() { - $this->doc = $this->sum_summary; - $this->doc .= DOKU_LF.'
'.DOKU_LF; - } - - function toc_open() { - $this->sum_summary .= $this->doc; - } - - function toc_close() { - $this->doc = ''; - } - - function header($text, $level, $pos) { - if ( !$this->sum_pageTitle ) { - $this->info['sum_pagetitle'] = $text; - $this->sum_pageTitle = TRUE; - } - $this->doc .= DOKU_LF.''; - $this->doc .= $this->_xmlEntities($text); - $this->doc .= "".DOKU_LF; - } - - function section_open($level) { - if ( $this->sum_capture ) { - $this->sum_inSection = TRUE; - } - } - - function section_close() { - if ( $this->sum_capture && $this->sum_inSection ) { - $this->sum_summary .= $this->doc; - $this->sum_capture = FALSE; - } - } - - function p_open() { - if ( $this->sum_capture && $this->sum_paragraphs < 2 ) { - $this->sum_paragraphs++; - } - parent :: p_open(); - } - - function p_close() { - parent :: p_close(); - if ( $this->sum_capture && $this->sum_paragraphs >= 2 ) { - $this->sum_summary .= $this->doc; - $this->sum_capture = FALSE; - } - } - -} - - -//Setup VIM: ex: et ts=2 enc=utf-8 : +doc .= DOKU_LF.'
'.DOKU_LF; + } + + function document_end() { + $this->doc = $this->sum_summary; + $this->doc .= DOKU_LF.'
'.DOKU_LF; + } + + function toc_open() { + $this->sum_summary .= $this->doc; + } + + function toc_close() { + $this->doc = ''; + } + + function header($text, $level, $pos) { + if ( !$this->sum_pageTitle ) { + $this->info['sum_pagetitle'] = $text; + $this->sum_pageTitle = TRUE; + } + $this->doc .= DOKU_LF.''; + $this->doc .= $this->_xmlEntities($text); + $this->doc .= "".DOKU_LF; + } + + function section_open($level) { + if ( $this->sum_capture ) { + $this->sum_inSection = TRUE; + } + } + + function section_close() { + if ( $this->sum_capture && $this->sum_inSection ) { + $this->sum_summary .= $this->doc; + $this->sum_capture = FALSE; + } + } + + function p_open() { + if ( $this->sum_capture && $this->sum_paragraphs < 2 ) { + $this->sum_paragraphs++; + } + parent :: p_open(); + } + + function p_close() { + parent :: p_close(); + if ( $this->sum_capture && $this->sum_paragraphs >= 2 ) { + $this->sum_summary .= $this->doc; + $this->sum_capture = FALSE; + } + } + +} + + +//Setup VIM: ex: et ts=2 enc=utf-8 : -- cgit v1.2.3