[prev in list] [next in list] [prev in thread] [next in thread]
List: php-doc-cvs
Subject: [DOC-CVS] =?utf-8?q?svn:_/phd/trunk/_package=5Fgeneric.xml_phpdotnet/phd/Package/Generic/XHTML.php?=
From: Philip_Olson <philip () php ! net>
Date: 2010-06-30 4:56:55
Message-ID: svn-philip-1277873815-300874-80819830 () svn ! php ! net
[Download RAW message or body]
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"])) {
--
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