=38) return false; return ($format=='xhtml'); } /** * $sectionedits is private and cannot be accessed by plugins, * so this dirty hack is required * * Get rid of this renderer if it's fixed... */ public $sectionedits = array(); // A stack of section edit data /** * Copied from xhtml.php, no change */ public function startSectionEdit($start, $type, $title = null) { static $lastsecid = 0; $this->sectionedits[] = array(++$lastsecid, $start, $type, $title); return 'sectionedit' . $lastsecid; } public function finishSectionEdit($end = null) { list($id, $start, $type, $title) = array_pop($this->sectionedits); if (!is_null($end) && $end <= $start) { return; } $this->doc .= "'; } function document_end() { // Finish open section edits. while (count($this->sectionedits) > 0) { if ($this->sectionedits[count($this->sectionedits) - 1][1] <= 1) { // If there is only one section, do not write a section edit // marker. array_pop($this->sectionedits); } else { $this->finishSectionEdit(); } } if ( count ($this->footnotes) > 0 ) { $this->doc .= '
\s*
#','',$this->doc); } } //Setup VIM: ex: et ts=4 enc=utf-8 :