cvs: phd /formats xhtml.php
| From: | Nilgün Belma Bugüner | Date: | Mon, 27 Apr 2009 09:09:51 +0000 |
| Subject: | cvs: phd /formats xhtml.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-3891@lists.php.net to get a copy of this message | ||
nilgun Mon Apr 27 09:09:51 2009 UTC
Modified files:
/phd/formats xhtml.php
Log:
add anchor for variablelist
http://cvs.php.net/viewvc.cgi/phd/formats/xhtml.php?r1=1.95&r2=1.96&diff_format=u
Index: phd/formats/xhtml.php
diff -u phd/formats/xhtml.php:1.95 phd/formats/xhtml.php:1.96
--- phd/formats/xhtml.php:1.95 Mon Apr 20 11:07:54 2009
+++ phd/formats/xhtml.php Mon Apr 27 09:09:51 2009
@@ -1,5 +1,5 @@
<?php
-/* $Id: xhtml.php,v 1.95 2009/04/20 11:07:54 rquadling Exp $ */
+/* $Id: xhtml.php,v 1.96 2009/04/27 09:09:51 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();
}