You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by fs...@apache.org on 2020/02/25 19:27:27 UTC

svn commit: r1874523 - /tomcat/site/trunk/xdocs/stylesheets/tomcat-site.xsl

Author: fschumacher
Date: Tue Feb 25 19:27:27 2020
New Revision: 1874523

URL: http://svn.apache.org/viewvc?rev=1874523&view=rev
Log:
Substring starts on index 1

Take Konstantins note into account and let the xpath function substring start
with the correct index of "1". Now we can use a shorter substring, to get the
same results, so use 9 instead of 8 for the length.

Modified:
    tomcat/site/trunk/xdocs/stylesheets/tomcat-site.xsl

Modified: tomcat/site/trunk/xdocs/stylesheets/tomcat-site.xsl
URL: http://svn.apache.org/viewvc/tomcat/site/trunk/xdocs/stylesheets/tomcat-site.xsl?rev=1874523&r1=1874522&r2=1874523&view=diff
==============================================================================
--- tomcat/site/trunk/xdocs/stylesheets/tomcat-site.xsl (original)
+++ tomcat/site/trunk/xdocs/stylesheets/tomcat-site.xsl Tue Feb 25 19:27:27 2020
@@ -359,7 +359,7 @@
   <!-- Link to a git hash -->
   <xsl:template match="hashlink">
       <xsl:variable name="link"><xsl:value-of select="$hashlink"/><xsl:value-of select="@hash"/></xsl:variable>
-      <a href="{$link}"><xsl:value-of select="substring(@hash, 0, 9)"/></a>
+      <a href="{$link}"><xsl:value-of select="substring(@hash, 1, 8)"/></a>
   </xsl:template>
 
   <!-- Link to a CVE report -->



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org