httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n.@apache.org
Subject svn commit: r1565135 - /httpd/httpd/trunk/docs/manual/style/xsl/common.xsl
Date Thu, 06 Feb 2014 09:34:52 GMT
Author: nd
Date: Thu Feb  6 09:34:52 2014
New Revision: 1565135

URL: http://svn.apache.org/r1565135
Log:
indentation fixup for multinode <pre> container

Modified:
    httpd/httpd/trunk/docs/manual/style/xsl/common.xsl

Modified: httpd/httpd/trunk/docs/manual/style/xsl/common.xsl
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/style/xsl/common.xsl?rev=1565135&r1=1565134&r2=1565135&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/style/xsl/common.xsl (original)
+++ httpd/httpd/trunk/docs/manual/style/xsl/common.xsl Thu Feb  6 09:34:52 2014
@@ -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()]" />



Mime
View raw message