cvs: phd /formats xhtml.php
| From: | Hannes Magnusson | Date: | Fri, 02 Jan 2009 14:44:23 +0000 |
| Subject: | cvs: phd /formats xhtml.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-2920@lists.php.net to get a copy of this message | ||
bjori Fri Jan 2 14:44:23 2009 UTC
Modified files:
/phd/formats xhtml.php
Log:
MFB: New lines to <br> for screen sections
http://cvs.php.net/viewvc.cgi/phd/formats/xhtml.php?r1=1.82&r2=1.83&diff_format=u
Index: phd/formats/xhtml.php
diff -u phd/formats/xhtml.php:1.82 phd/formats/xhtml.php:1.83
--- phd/formats/xhtml.php:1.82 Fri Jan 2 00:44:58 2009
+++ phd/formats/xhtml.php Fri Jan 2 14:44:23 2009
@@ -1,5 +1,5 @@
<?php
-/* $Id: xhtml.php,v 1.82 2009/01/02 00:44:58 bjori Exp $ */
+/* $Id: xhtml.php,v 1.83 2009/01/02 14:44:23 bjori Exp $ */
class XHTMLPhDFormat extends PhDFormat {
protected $elementmap = array( /* {{{ */
@@ -295,6 +295,7 @@
'shortaffil' => 'format_suppressed_text',
'titleabbrev' => 'format_suppressed_text',
'programlisting' => 'format_programlisting_text',
+ 'screen' => 'format_screen_text',
'alt' => 'format_alt_text',
'modifier' => array(
/* DEFAULT */ false,
@@ -1136,6 +1137,9 @@
}
return '</div>';
}
+ public function format_screen_text($value, $tag) {
+ return nl2br($value);
+ }
public function format_constant($open, $name, $attrs) {
if ($open) {
return "<b><tt class=\"constant\">";