cvs: phd /formats xhtml.php
| From: | Hannes Magnusson | Date: | Fri, 19 Oct 2007 14:23:09 +0000 |
| Subject: | cvs: phd /formats xhtml.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-241@lists.php.net to get a copy of this message | ||
bjori Fri Oct 19 14:23:09 2007 UTC
Modified files:
/phd/formats xhtml.php
Log:
Print notes inline with its title (Reported by Philip)
http://cvs.php.net/viewvc.cgi/phd/formats/xhtml.php?r1=1.38&r2=1.39&diff_format=u
Index: phd/formats/xhtml.php
diff -u phd/formats/xhtml.php:1.38 phd/formats/xhtml.php:1.39
--- phd/formats/xhtml.php:1.38 Sat Oct 6 14:59:14 2007
+++ phd/formats/xhtml.php Fri Oct 19 14:23:09 2007
@@ -1,5 +1,5 @@
<?php
-/* $Id: xhtml.php,v 1.38 2007/10/06 14:59:14 bjori Exp $ */
+/* $Id: xhtml.php,v 1.39 2007/10/19 14:23:09 bjori Exp $ */
class XHTMLPhDFormat extends PhDFormat {
protected $elementmap = array( /* {{{ */
@@ -90,7 +90,10 @@
'book' => 'format_chunk',
'part' => 'format_chunk',
),
- 'info' => 'div',
+ 'info' => array(
+ /* DEFAULT */ 'div',
+ 'note' => 'span',
+ ),
'informalexample' => 'div',
'informaltable' => 'table',
'indexdiv' => 'dl',
@@ -128,6 +131,7 @@
'para' => array(
/* DEFAULT */ 'p',
'example' => 'format_example_content',
+ 'note' => 'format_note_content',
),
'parameter' => array(
/* DEFAULT */ 'format_parameter',
@@ -648,6 +652,13 @@
}
return '</b>';
}
+ public function format_note_content($open, $name, $attrs) {
+ if ($open) {
+ /* Ignore the open tag */
+ return "";
+ }
+ return "<br />";
+ }
public function format_bold_paragraph($open, $name, $attrs, $props) {
if ($props["empty"]) {
return "";