svn: /phd/trunk/ package.xml phpdotnet/phd/Package/Generic/XHTML.php
| From: | Richard Quadling | Date: | Fri, 14 May 2010 16:02:45 +0000 |
| Subject: | svn: /phd/trunk/ package.xml phpdotnet/phd/Package/Generic/XHTML.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-6653@lists.php.net to get a copy of this message | ||
rquadling Fri, 14 May 2010 16:02:45 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=299387
Log:
Allow <void/> as return type for methodsynopsis tags rather than <type>void<\type>
Changed paths:
U phd/trunk/package.xml
U phd/trunk/phpdotnet/phd/Package/Generic/XHTML.php
Modified: phd/trunk/package.xml
===================================================================
--- phd/trunk/package.xml 2010-05-14 15:55:36 UTC (rev 299386)
+++ phd/trunk/package.xml 2010-05-14 16:02:45 UTC (rev 299387)
@@ -71,6 +71,7 @@
- Added 'package_dirs' config option to specify package directories to autoload from
(Hannes)
- Corrected grammar in Danish translation + fixed encoding (Daniel Egeberg)
- Allow colored output on Windows, but not by default (Richard Quadling)
+ - Allow <void/> as return type for methodsynopsis tags rather than
<type>void<\type> (Richard Quadling)
</notes>
<contents>
Modified: phd/trunk/phpdotnet/phd/Package/Generic/XHTML.php
===================================================================
--- phd/trunk/phpdotnet/phd/Package/Generic/XHTML.php 2010-05-14 15:55:36 UTC (rev 299386)
+++ phd/trunk/phpdotnet/phd/Package/Generic/XHTML.php 2010-05-14 16:02:45 UTC (rev 299387)
@@ -240,6 +240,7 @@
'set' => 'format_container_chunk_top',
'setindex' => 'format_chunk',
'shortaffil' => 'format_suppressed_tags',
+ 'sidebar' => 'format_note',
'simplelist' => 'format_itemizedlist', /* FIXME:
simplelists has few attributes that need to be implemented */
'simplesect' => 'format_div',
'simpara' => array(
@@ -980,8 +981,12 @@
return "</tt></i>";
}
- public function format_void($open, $name, $attrs) {
- return ' ( <span class="methodparam">void</span>';
+ public function format_void($open, $name, $attrs, $props) {
+ if ($props['sibling'] == 'methodname') {
+ return ' ( <span class="methodparam">void</span>';
+ } else {
+ return '<span class="type"><span class="type
void">void</span></span>';
+ }
}
public function format_methodparam($open, $name, $attrs) {
if ($open) {