svn: /phpdoc/doc-base/trunk/scripts/docgen/ docgen.php
| From: | Jakub Vrana | Date: | Fri, 17 May 2013 06:02:10 +0000 |
| Subject: | svn: /phpdoc/doc-base/trunk/scripts/docgen/ docgen.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-11287@lists.php.net to get a copy of this message | ||
vrana Fri, 17 May 2013 06:02:10 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=330264
Log:
Use methodsynopsis[not(@role='procedural')] to correctly link mixed synopses
Changed paths:
U phpdoc/doc-base/trunk/scripts/docgen/docgen.php
Modified: phpdoc/doc-base/trunk/scripts/docgen/docgen.php
===================================================================
--- phpdoc/doc-base/trunk/scripts/docgen/docgen.php 2013-05-17 06:01:45 UTC (rev 330263)
+++ phpdoc/doc-base/trunk/scripts/docgen/docgen.php 2013-05-17 06:02:10 UTC (rev 330264)
@@ -560,7 +560,7 @@
$ident = get_ident_size('METHOD_XINCLUDE', $content);
$content = preg_replace('/\{METHOD_XINCLUDE\}/',
PHP_EOL . str_repeat(' ', $ident) . "<classsynopsisinfo
role=\"comment\">&Methods;</classsynopsisinfo>". PHP_EOL.
- str_repeat(' ', $ident) ."<xi:include xpointer=\"xmlns(db=http://docbook.org/ns/docbook)
xpointer(id('class.". $id
."')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])\"
/>",
+ str_repeat(' ', $ident) ."<xi:include xpointer=\"xmlns(db=http://docbook.org/ns/docbook)
xpointer(id('class.". $id
."')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[not(@role='procedural')])\"
/>",
$content, 1);
/* {INHERITED_XINCLUDE} */
@@ -568,7 +568,7 @@
$ident = get_ident_size('INHERITED_XINCLUDE', $content);
$content = preg_replace('/\{INHERITED_XINCLUDE\}/',
PHP_EOL . str_repeat(' ', $ident) ."<classsynopsisinfo
role=\"comment\">&InheritedMethods;</classsynopsisinfo>". PHP_EOL.
- str_repeat(' ', $ident) ."<xi:include xpointer=\"xmlns(db=http://docbook.org/ns/docbook)
xpointer(id('class.". format_id($parent->getName())
."')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])\"
/>". PHP_EOL,
+ str_repeat(' ', $ident) ."<xi:include xpointer=\"xmlns(db=http://docbook.org/ns/docbook)
xpointer(id('class.". format_id($parent->getName())
."')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[not(@role='procedural')])\"
/>". PHP_EOL,
$content, 1);
} else {
$content = preg_replace('/^\s*\{INHERITED_XINCLUDE\}.*?\n/m', '', $content,
1);