cvs: phd /formats xhtml.php /themes/pear peartheme.php

From: Date: Wed, 28 Jan 2009 23:31:24 +0000
Subject: cvs: phd /formats xhtml.php /themes/pear peartheme.php
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-3103@lists.php.net to get a copy of this message
cweiske Wed Jan 28 23:31:24 2009 UTC Modified files: /phd/formats xhtml.php /phd/themes/pear peartheme.php Log: Fix qandaset problems in peardoc, make empty paragraphs in examples generate valid html. http://cvs.php.net/viewvc.cgi/phd/formats/xhtml.php?r1=1.86&r2=1.87&diff_format=u Index: phd/formats/xhtml.php diff -u phd/formats/xhtml.php:1.86 phd/formats/xhtml.php:1.87 --- phd/formats/xhtml.php:1.86 Sun Jan 25 19:59:27 2009 +++ phd/formats/xhtml.php Wed Jan 28 23:31:23 2009 @@ -1,5 +1,5 @@ <?php -/* $Id: xhtml.php,v 1.86 2009/01/25 19:59:27 cweiske Exp $ */ +/* $Id: xhtml.php,v 1.87 2009/01/28 23:31:23 cweiske Exp $ */ class XHTMLPhDFormat extends PhDFormat { protected $elementmap = array( /* {{{ */ @@ -664,6 +664,9 @@ return $this->format_chunk($open, "refentry", $attrs, $props); } public function format_refsect1_para($open, $name, $attrs, $props) { + if ($props['empty']) { + return ''; + } if ($open) { switch ($props["sibling"]) { case "methodsynopsis": @@ -1109,7 +1112,10 @@ } return "</code>\n"; } - public function format_example_content($open, $name, $attrs) { + public function format_example_content($open, $name, $attrs, $props) { + if ($props['empty']) { + return ''; + } if ($open) { $retval = $this->escapePara() . '<div class="example-contents ' .$name. '"><p>'; ++$this->openPara; http://cvs.php.net/viewvc.cgi/phd/themes/pear/peartheme.php?r1=1.25&r2=1.26&diff_format=u Index: phd/themes/pear/peartheme.php diff -u phd/themes/pear/peartheme.php:1.25 phd/themes/pear/peartheme.php:1.26 --- phd/themes/pear/peartheme.php:1.25 Mon Jan 26 21:45:58 2009 +++ phd/themes/pear/peartheme.php Wed Jan 28 23:31:24 2009 @@ -85,6 +85,7 @@ 'package' => 'strong', 'para' => array( /* DEFAULT */ false, + 'question' => 'span',//can't ignore it since it's defined in format 'warning' => 'format_warning_para', 'important' => 'format_suppressed_tags', ), @@ -146,6 +147,7 @@ //'example' => 'format_example_title', 'informaltable' => 'format_table_title', 'part' => 'format_container_chunk_title', + 'refsection' => 'format_container_chunk_title', 'section' => array( /* DEFAULT */ 'format_container_chunk_title', 'section' => array(

« previous php.doc.cvs (#3103) next »