techtonik Sun Nov 14 15:37:31 2004 EDT
Modified files:
/phpdoc/xsl quickref.xsl
Log:
function names in reference can't contain spaces
fix since refnamediv is used more widely
http://cvs.php.net/diff.php/phpdoc/xsl/quickref.xsl?r1=1.3&r2=1.4&ty=u
Index: phpdoc/xsl/quickref.xsl
diff -u phpdoc/xsl/quickref.xsl:1.3 phpdoc/xsl/quickref.xsl:1.4
--- phpdoc/xsl/quickref.xsl:1.3 Sun Nov 14 12:36:11 2004
+++ phpdoc/xsl/quickref.xsl Sun Nov 14 15:37:29 2004
@@ -3,7 +3,7 @@
quickref.xsl: Stylesheet for generating quick-reference
- $Id: quickref.xsl,v 1.3 2004/11/14 17:36:11 techtonik Exp $
+ $Id: quickref.xsl,v 1.4 2004/11/14 20:37:29 techtonik Exp $
-->
<!DOCTYPE xsl:stylesheet [
@@ -37,11 +37,13 @@
</xsl:template>
<xsl:template match="refnamediv">
- <xsl:value-of select="normalize-space(refname)"/>
- <xsl:text> - </xsl:text>
- <xsl:value-of select="normalize-space(refpurpose)"/>
- <xsl:text>
-</xsl:text>
+ <!-- function reference names can't contain spaces -->
+ <xsl:if test="not (contains(normalize-space(refname),' '))">
+ <xsl:value-of select="normalize-space(refname)"/>
+ <xsl:text> - </xsl:text>
+ <xsl:value-of select="normalize-space(refpurpose)"/>
+ <xsl:text> </xsl:text>
+ </xsl:if>
</xsl:template>
</xsl:stylesheet>
\ No newline at end of file