cvs: phd(PHD_0_4) /formats xhtml.php
| From: | Nilgün Belma Bugüner | Date: | Sat, 03 Jan 2009 12:51:33 +0000 |
| Subject: | cvs: phd(PHD_0_4) /formats xhtml.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-2926@lists.php.net to get a copy of this message | ||
nilgun Sat Jan 3 12:51:33 2009 UTC
Modified files: (Branch: PHD_0_4)
/phd/formats xhtml.php
Log:
add anchor for table rows
See: manual/en/http.configuration.php, link to http.force_exit
http://cvs.php.net/viewvc.cgi/phd/formats/xhtml.php?r1=1.67.2.2.2.14&r2=1.67.2.2.2.15&diff_format=u
Index: phd/formats/xhtml.php
diff -u phd/formats/xhtml.php:1.67.2.2.2.14 phd/formats/xhtml.php:1.67.2.2.2.15
--- phd/formats/xhtml.php:1.67.2.2.2.14 Fri Jan 2 12:58:14 2009
+++ phd/formats/xhtml.php Sat Jan 3 12:51:32 2009
@@ -1,5 +1,5 @@
<?php
-/* $Id: xhtml.php,v 1.67.2.2.2.14 2009/01/02 12:58:14 bjori Exp $ */
+/* $Id: xhtml.php,v 1.67.2.2.2.15 2009/01/03 12:51:32 nilgun Exp $ */
class XHTMLPhDFormat extends PhDFormat {
protected $elementmap = array( /* {{{ */
@@ -1374,9 +1374,13 @@
}
public function format_row($open, $name, $attrs) {
if ($open) {
+ $idstr = '';
+ if (isset($attrs[PhDReader::XMLNS_XML]['id'])) {
+ $idstr = ' id="'. $attrs[PhDReader::XMLNS_XML]['id'].
'"';
+ }
PhDFormat::initRow();
$valign = PhDFormat::valign($attrs[PhDReader::XMLNS_DOCBOOK]);
- return '<tr valign="' .$valign. '">';
+ return '<tr'.$idstr.' valign="' .$valign.
'">';
}
return "</tr>\n";
}