svn: /phd/trunk/ package_generic.xml phpdotnet/phd/Package/Generic/XHTML.php
| From: | Philip Olson | Date: | Wed, 30 Jun 2010 04:56:55 +0000 |
| Subject: | svn: /phd/trunk/ package_generic.xml phpdotnet/phd/Package/Generic/XHTML.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-6855@lists.php.net to get a copy of this message | ||
philip Wed, 30 Jun 2010 04:56:55 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=300874
Log:
Added format_option to bold options, like for --enable-foo
Changed paths:
U phd/trunk/package_generic.xml
U phd/trunk/phpdotnet/phd/Package/Generic/XHTML.php
Modified: phd/trunk/package_generic.xml
===================================================================
--- phd/trunk/package_generic.xml 2010-06-30 04:23:32 UTC (rev 300873)
+++ phd/trunk/package_generic.xml 2010-06-30 04:56:55 UTC (rev 300874)
@@ -53,6 +53,7 @@
- Several formatting fixes for the unix manual pages (Hannes)
- Added Generic Unix Manual pages output format (Hannes)
- Fixed #51833 - Multiple paragraphs in notes render incorrectly (Daniel Egeberg)
+ - Added format_option to bold options (Philip)
</notes>
<contents>
Modified: phd/trunk/phpdotnet/phd/Package/Generic/XHTML.php
===================================================================
--- phd/trunk/phpdotnet/phd/Package/Generic/XHTML.php 2010-06-30 04:23:32 UTC (rev 300873)
+++ phd/trunk/phpdotnet/phd/Package/Generic/XHTML.php 2010-06-30 04:56:55 UTC (rev 300874)
@@ -162,7 +162,7 @@
),
'interfacename' => 'span',
'exceptionname' => 'span',
- 'option' => 'span',
+ 'option' => 'format_option',
'orderedlist' => 'format_orderedlist',
'para' => array(
/* DEFAULT */ 'p',
@@ -627,6 +627,18 @@
return "</a>";
}
+ public function format_option($open, $name, $attrs) {
+ if ($open) {
+ if(!isset($attrs[Reader::XMLNS_DOCBOOK]["role"])) {
+ $attrs[Reader::XMLNS_DOCBOOK]["role"] = "unknown";
+ }
+ $this->role = $role = $attrs[Reader::XMLNS_DOCBOOK]["role"];
+ return '<strong class="' .$name.' ' .$role.
'">';
+ }
+ $this->role = null;
+ return "</strong>\n";
+ }
+
public function format_literal($open, $name, $attrs) {
if ($open) {
if (isset($attrs[Reader::XMLNS_DOCBOOK]["role"])) {