cvs: phd(PHD_0_4) /formats xhtml.php

From: Date: Thu, 01 Jan 2009 22:35:41 +0000
Subject: cvs: phd(PHD_0_4) /formats xhtml.php
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-2905@lists.php.net to get a copy of this message
bjori Thu Jan 1 22:35:41 2009 UTC Modified files: (Branch: PHD_0_4) /phd/formats xhtml.php Log: Fixed bug#44598 (Much space on 'expected output' section) - Fixed multiple other markup errors - Added some css classes http://cvs.php.net/viewvc.cgi/phd/formats/xhtml.php?r1=1.67.2.2.2.9&r2=1.67.2.2.2.10&diff_format=u Index: phd/formats/xhtml.php diff -u phd/formats/xhtml.php:1.67.2.2.2.9 phd/formats/xhtml.php:1.67.2.2.2.10 --- phd/formats/xhtml.php:1.67.2.2.2.9 Thu Jan 1 21:22:43 2009 +++ phd/formats/xhtml.php Thu Jan 1 22:35:41 2009 @@ -1,5 +1,5 @@ <?php -/* $Id: xhtml.php,v 1.67.2.2.2.9 2009/01/01 21:22:43 bjori Exp $ */ +/* $Id: xhtml.php,v 1.67.2.2.2.10 2009/01/01 22:35:41 bjori Exp $ */ class XHTMLPhDFormat extends PhDFormat { protected $elementmap = array( /* {{{ */ @@ -124,7 +124,7 @@ 'note' => 'span', ), 'informalexample' => 'format_div', - 'informaltable' => 'table', + 'informaltable' => 'format_table', 'indexdiv' => 'format_dl', 'indexentry' => 'dd', 'initializer' => 'format_initializer', @@ -801,7 +801,7 @@ public function format_methodparam_parameter($open, $name, $attrs) { if ($open) { if (isset($attrs[PhDReader::XMLNS_DOCBOOK]["role"])) { - return ' <tt class="parameter reference">&$'; + return ' <tt class="parameter reference">&amp;$'; } return ' <tt class="parameter">$'; } @@ -816,7 +816,7 @@ public function format_parameter($open, $name, $attrs) { if ($open) { if (isset($attrs[PhDReader::XMLNS_DOCBOOK]["role"])) { - return '<i><tt class="parameter reference">&'; + return '<i><tt class="parameter reference">&amp;'; } return '<i><tt class="parameter">'; } @@ -1107,9 +1107,9 @@ } public function format_example_content($open, $name, $attrs) { if ($open) { - return '<div class="example-contents"><p>'; + return $this->escapePara() . '<div class="example-contents"><p>'; } - return "</p></div>"; + return "</p></div>" . $this->restorePara(); } public function format_programlisting($open, $name, $attrs) { if ($open) { @@ -1119,23 +1119,23 @@ $this->role = false; } - return '<div class="example-contents">'; + return $this->escapePara() . '<div class="example-contents">'; } $this->role = false; - return "</div>\n"; + return "</div>\n" . $this->restorePara(); } public function format_programlisting_text($value, $tag) { return $this->CDATA($value); } public function format_screen($open, $name, $attrs) { if ($open) { - return '<div class="example-contents"><pre>'; + return '<div class="example-contents screen">'; } - return '</pre></div>'; + return '</div>'; } public function format_constant($open, $name, $attrs) { if ($open) { - return "<b><tt>"; + return "<b><tt class=\"constant\">"; } return "</tt></b>"; } @@ -1264,7 +1264,7 @@ public function format_table($open, $name, $attrs, $props) { if ($open) { $this->cchunk["table"] = true; - return '<table class="doctable formaltable">'; + return $this->escapePara() . '<table class="doctable '.$name. '">'; } $this->cchunk["table"] = false; $str = ""; @@ -1288,7 +1288,7 @@ $this->cchunk["tablefootnotes"] = $this->dchunk["tablefootnotes"]; } - return "$str</table>\n"; + return "$str</table>\n" . $this->restorePara(); } public function format_tgroup($open, $name, $attrs) { if ($open) {

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