cvs: phd(PHD_0_4) /formats xhtml.php
| From: | Hannes Magnusson | Date: | Wed, 07 Jan 2009 18:06:27 +0000 |
| Subject: | cvs: phd(PHD_0_4) /formats xhtml.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-2962@lists.php.net to get a copy of this message | ||
bjori Wed Jan 7 18:06:27 2009 UTC
Modified files: (Branch: PHD_0_4)
/phd/formats xhtml.php
Log:
MFH: Fixed bug#47011 (Missing <? in xml_set_processing_instruction_handler)
# Only in CVS
http://cvs.php.net/viewvc.cgi/phd/formats/xhtml.php?r1=1.67.2.2.2.15&r2=1.67.2.2.2.16&diff_format=u
Index: phd/formats/xhtml.php
diff -u phd/formats/xhtml.php:1.67.2.2.2.15 phd/formats/xhtml.php:1.67.2.2.2.16
--- phd/formats/xhtml.php:1.67.2.2.2.15 Sat Jan 3 12:51:32 2009
+++ phd/formats/xhtml.php Wed Jan 7 18:06:27 2009
@@ -1,5 +1,5 @@
<?php
-/* $Id: xhtml.php,v 1.67.2.2.2.15 2009/01/03 12:51:32 nilgun Exp $ */
+/* $Id: xhtml.php,v 1.67.2.2.2.16 2009/01/07 18:06:27 bjori Exp $ */
class XHTMLPhDFormat extends PhDFormat {
protected $elementmap = array( /* {{{ */
@@ -1108,7 +1108,7 @@
}
public function format_example_content($open, $name, $attrs) {
if ($open) {
- $retval = $this->escapePara() . '<div
class="example-contents"><p>';
+ $retval = $this->escapePara() . '<div class="example-contents '
.$name. '"><p>';
++$this->openPara;
return $retval;
}
@@ -1123,22 +1123,22 @@
$this->role = false;
}
- return $this->escapePara() . '<div
class="example-contents">';
+ return $this->escapePara() . '<div class="example-contents '
.$name. '">';
}
$this->role = false;
return "</div>\n" . $this->restorePara();
}
public function format_programlisting_text($value, $tag) {
- return nl2br($value);
+ return nl2br($this->TEXT($value));
}
public function format_screen($open, $name, $attrs) {
if ($open) {
- return '<div class="example-contents screen">';
+ return '<div class="example-contents ' .$name.
'">';
}
return '</div>';
}
public function format_screen_text($value, $tag) {
- return nl2br($value);
+ return nl2br($this->TEXT($value));
}
public function format_constant($open, $name, $attrs) {
if ($open) {