cvs: phd /formats xhtml.php

From: Date: Wed, 07 Jan 2009 18:05:36 +0000
Subject: cvs: phd /formats xhtml.php
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-2961@lists.php.net to get a copy of this message
bjori Wed Jan 7 18:05:36 2009 UTC Modified files: /phd/formats xhtml.php Log: Fixed bug#47011 (Missing <? in xml_set_processing_instruction_handler) http://cvs.php.net/viewvc.cgi/phd/formats/xhtml.php?r1=1.84&r2=1.85&diff_format=u Index: phd/formats/xhtml.php diff -u phd/formats/xhtml.php:1.84 phd/formats/xhtml.php:1.85 --- phd/formats/xhtml.php:1.84 Sat Jan 3 12:55:22 2009 +++ phd/formats/xhtml.php Wed Jan 7 18:05:36 2009 @@ -1,5 +1,5 @@ <?php -/* $Id: xhtml.php,v 1.84 2009/01/03 12:55:22 nilgun Exp $ */ +/* $Id: xhtml.php,v 1.85 2009/01/07 18:05:36 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) {

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