cvs: phd /formats xhtml.php
| From: | Hannes Magnusson | Date: | Wed, 03 Oct 2007 20:39:09 +0000 |
| Subject: | cvs: phd /formats xhtml.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-139@lists.php.net to get a copy of this message | ||
bjori Wed Oct 3 20:39:09 2007 UTC
Modified files:
/phd/formats xhtml.php
Log:
Fix empty table cells (reported by Mark Wiesemann)
http://cvs.php.net/viewvc.cgi/phd/formats/xhtml.php?r1=1.35&r2=1.36&diff_format=u
Index: phd/formats/xhtml.php
diff -u phd/formats/xhtml.php:1.35 phd/formats/xhtml.php:1.36
--- phd/formats/xhtml.php:1.35 Wed Oct 3 14:51:42 2007
+++ phd/formats/xhtml.php Wed Oct 3 20:39:09 2007
@@ -1,5 +1,5 @@
<?php
-/* $Id: xhtml.php,v 1.35 2007/10/03 14:51:42 bjori Exp $ */
+/* $Id: xhtml.php,v 1.36 2007/10/03 20:39:09 bjori Exp $ */
class XHTMLPhDFormat extends PhDFormat {
protected $elementmap = array( /* {{{ */
@@ -729,7 +729,10 @@
}
return '</th>';
}
- public function format_entry($open, $name, $attrs) {
+ public function format_entry($open, $name, $attrs, $props) {
+ if ($props["empty"]) {
+ return '<td class="empty"> </td>';
+ }
if ($open) {
$dbattrs = PhDFormat::getColspec($attrs[PhDReader::XMLNS_DOCBOOK]);