cvs: phd /formats xhtml.php
| From: | Hannes Magnusson | Date: | Wed, 03 Oct 2007 14:51:42 +0000 |
| Subject: | cvs: phd /formats xhtml.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-136@lists.php.net to get a copy of this message | ||
bjori Wed Oct 3 14:51:42 2007 UTC
Modified files:
/phd/formats xhtml.php
Log:
Fix table title markup (reported by Richard)
http://cvs.php.net/viewvc.cgi/phd/formats/xhtml.php?r1=1.34&r2=1.35&diff_format=u
Index: phd/formats/xhtml.php
diff -u phd/formats/xhtml.php:1.34 phd/formats/xhtml.php:1.35
--- phd/formats/xhtml.php:1.34 Tue Oct 2 14:37:42 2007
+++ phd/formats/xhtml.php Wed Oct 3 14:51:42 2007
@@ -1,5 +1,5 @@
<?php
-/* $Id: xhtml.php,v 1.34 2007/10/02 14:37:42 bjori Exp $ */
+/* $Id: xhtml.php,v 1.35 2007/10/03 14:51:42 bjori Exp $ */
class XHTMLPhDFormat extends PhDFormat {
protected $elementmap = array( /* {{{ */
@@ -212,7 +212,7 @@
'sect2' => 'h3',
'sect3' => 'h4',
'segmentedlist' => 'strong',
- 'table' => 'format_bold_paragraph',
+ 'table' => 'format_table_title',
'variablelist' => 'strong',
),
'type' => 'span',
@@ -636,6 +636,15 @@
}
return "</b></p>";
}
+ public function format_table_title($open, $name, $attrs, $props) {
+ if ($props["empty"]) {
+ return "";
+ }
+ if ($open) {
+ return "<caption><b>";
+ }
+ return "</b></caption>";
+ }
public function format_mediaobject($open, $name, $attrs) {
$this->tmp["mediaobject"] = array();