cvs: phd(PHD_0_4) / package.xml /formats xhtml.php /themes/pear peartheme.php
| From: | Christian Weiske | Date: | Wed, 28 Jan 2009 23:33:57 +0000 |
| Subject: | cvs: phd(PHD_0_4) / package.xml /formats xhtml.php /themes/pear peartheme.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-3104@lists.php.net to get a copy of this message | ||
cweiske Wed Jan 28 23:33:57 2009 UTC
Modified files: (Branch: PHD_0_4)
/phd/formats xhtml.php
/phd/themes/pear peartheme.php
/phd package.xml
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.67.2.2.2.17&r2=1.67.2.2.2.18&diff_format=u
Index: phd/formats/xhtml.php
diff -u phd/formats/xhtml.php:1.67.2.2.2.17 phd/formats/xhtml.php:1.67.2.2.2.18
--- phd/formats/xhtml.php:1.67.2.2.2.17 Sun Jan 25 19:59:04 2009
+++ phd/formats/xhtml.php Wed Jan 28 23:33:56 2009
@@ -1,5 +1,5 @@
<?php
-/* $Id: xhtml.php,v 1.67.2.2.2.17 2009/01/25 19:59:04 cweiske Exp $ */
+/* $Id: xhtml.php,v 1.67.2.2.2.18 2009/01/28 23:33:56 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.8.2.2.2.6&r2=1.8.2.2.2.7&diff_format=u
Index: phd/themes/pear/peartheme.php
diff -u phd/themes/pear/peartheme.php:1.8.2.2.2.6 phd/themes/pear/peartheme.php:1.8.2.2.2.7
--- phd/themes/pear/peartheme.php:1.8.2.2.2.6 Mon Jan 26 21:45:27 2009
+++ phd/themes/pear/peartheme.php Wed Jan 28 23:33:57 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(
http://cvs.php.net/viewvc.cgi/phd/package.xml?r1=1.74.2.19.2.38&r2=1.74.2.19.2.39&diff_format=u
Index: phd/package.xml
diff -u phd/package.xml:1.74.2.19.2.38 phd/package.xml:1.74.2.19.2.39
--- phd/package.xml:1.74.2.19.2.38 Sun Jan 25 19:59:03 2009
+++ phd/package.xml Wed Jan 28 23:33:57 2009
@@ -41,7 +41,7 @@
<active>yes</active>
</developer>
- <date>2009-01-25</date>
+ <date>2009-01-29</date>
<version>
<release>0.4.4</release>
<api>0.4.4</api>
@@ -55,6 +55,7 @@
- Add support for <package> in pear theme (Christian)
- Replace ereg_replace with preg_replace
- Implement request #47201: Allow custom source code highlighter (e.g. Geshi) (Christian)
+ - Fix HTML problems with empty paragraphs in examples and qandaset questions (Christian)
</notes>
<contents>