cvs: phd(PHD_0_4) /formats xhtml.php
| From: | Nilgün Belma Bugüner | Date: | Mon, 27 Apr 2009 09:10:24 +0000 |
| Subject: | cvs: phd(PHD_0_4) /formats xhtml.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-3892@lists.php.net to get a copy of this message | ||
nilgun Mon Apr 27 09:10:24 2009 UTC
Modified files: (Branch: PHD_0_4)
/phd/formats xhtml.php
Log:
add anchor for variablelist
http://cvs.php.net/viewvc.cgi/phd/formats/xhtml.php?r1=1.67.2.2.2.26&r2=1.67.2.2.2.27&diff_format=u
Index: phd/formats/xhtml.php
diff -u phd/formats/xhtml.php:1.67.2.2.2.26 phd/formats/xhtml.php:1.67.2.2.2.27
--- phd/formats/xhtml.php:1.67.2.2.2.26 Fri Apr 17 15:07:23 2009
+++ phd/formats/xhtml.php Mon Apr 27 09:10:24 2009
@@ -1,5 +1,5 @@
<?php
-/* $Id: xhtml.php,v 1.67.2.2.2.26 2009/04/17 15:07:23 nilgun Exp $ */
+/* $Id: xhtml.php,v 1.67.2.2.2.27 2009/04/27 09:10:24 nilgun Exp $ */
class XHTMLPhDFormat extends PhDFormat {
protected $elementmap = array( /* {{{ */
@@ -999,7 +999,11 @@
}
public function format_variablelist($open, $name, $attrs) {
if ($open) {
- return $this->escapePara() . "<dl>\n";
+ $idstr = '';
+ if (isset($attrs[PhDReader::XMLNS_XML]["id"])) {
+ $idstr = ' id="'. $attrs[PhDReader::XMLNS_XML]['id'].
'"';
+ }
+ return $this->escapePara() . "<dl" . $idstr . ">\n";
}
return "</dl>\n" . $this->restorePara();
}