]> granicus.if.org Git - apache/commitdiff
indentation fixup for multinode <pre> container
authorAndré Malo <nd@apache.org>
Thu, 6 Feb 2014 09:34:52 +0000 (09:34 +0000)
committerAndré Malo <nd@apache.org>
Thu, 6 Feb 2014 09:34:52 +0000 (09:34 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1565135 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/style/xsl/common.xsl

index d31a16c1fa0cf2a481eff376799296c15dc59a07..f8da447ebac4ecd4483bc5f1b99c6ddc6b26154a 100644 (file)
@@ -650,13 +650,9 @@ if (typeof(prettyPrint) !== 'undefined') {
         </xsl:choose>
     </xsl:variable>
 
-    <xsl:variable name="out">
-        <xsl:apply-templates select="node()[position() &gt;= $from and position() &lt;= $to]" />
-    </xsl:variable>
-
     <xsl:if test="$from = 2">
         <xsl:choose>
-        <xsl:when test="contains($out, '&#x0a;')">
+        <xsl:when test="text()[contains(., '&#x0a;')]">
             <xsl:call-template name="pre-ltrim">
                 <xsl:with-param name="string"
                     select="node()[position() = 1 and self::text()]" />