]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
fix another source of invalid links: too much space.
authorAndre Malo <nd@apache.org>
Mon, 27 Jan 2014 08:11:45 +0000 (08:11 +0000)
committerAndre Malo <nd@apache.org>
Mon, 27 Jan 2014 08:11:45 +0000 (08:11 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1561600 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/style/xsl/common.xsl

index c6d25a56e5ff34d889ddd7c11a7eb8fa4d9b57eb..887dcc465e633fae9d58c8cce98da78572196fbe 100644 (file)
@@ -726,7 +726,7 @@ if (typeof(prettyPrint) !== 'undefined') {
         </xsl:variable>
 
         <xsl:choose>
-        <xsl:when test="$in-modulesynopsis and @module = /modulesynopsis/name">
+        <xsl:when test="$in-modulesynopsis and normalize-space(@module) = /modulesynopsis/name">
             <a href="#{$lowerdirective}">
                 <xsl:if test="@type='section'">&lt;</xsl:if>
                 <xsl:value-of select="."/>
@@ -734,7 +734,7 @@ if (typeof(prettyPrint) !== 'undefined') {
             </a>
         </xsl:when>
         <xsl:otherwise>
-            <a href="{$path}/mod/{@module}.html#{$lowerdirective}">
+            <a href="{$path}/mod/{normalize-space(@module)}.html#{$lowerdirective}">
                 <xsl:if test="@type='section'">&lt;</xsl:if>
                 <xsl:value-of select="."/>
                 <xsl:if test="@type='section'">&gt;</xsl:if>
@@ -765,7 +765,7 @@ if (typeof(prettyPrint) !== 'undefined') {
         <xsl:value-of select="."/>
     </xsl:when>
     <xsl:otherwise>
-        <a href="{$path}/mod/{.}.html">
+        <a href="{$path}/mod/{normalize-space(.)}.html">
             <xsl:value-of select="."/>
         </a>
     </xsl:otherwise>