[prev in list] [next in list] [prev in thread] [next in thread]
List: php-doc-cvs
Subject: [DOC-CVS] cvs: phd /formats xhtml.php
From: "Nilgün Belma Bugüner" <nilgun () php ! net>
Date: 2009-04-27 9:09:51
Message-ID: cvsnilgun1240823391 () cvsserver
[Download RAW message or body]
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();
}
--
PHP Documentation Commits Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic