]> err.no Git - varnish/commitdiff
Widen left and right margins, and add a blank line between the paths and
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 11 Aug 2006 08:40:25 +0000 (08:40 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 11 Aug 2006 08:40:25 +0000 (08:40 +0000)
the message.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@803 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/svn2cl.xsl

index de5303e96d4ebf6c28c9328431b1357be5879145..b5513585713f6de366d1850bfd899bb75c61c30f 100644 (file)
@@ -75,7 +75,7 @@
  <xsl:param name="strip-prefix" select="'/'" />
 
  <!-- the length of a line to wrap messages at -->
- <xsl:param name="linelen" select="75" />
+ <xsl:param name="linelen" select="78" />
  
  <!-- whether entries should be grouped by day -->
  <xsl:param name="groupbyday" select="'no'" />
   <!-- add newline here if separate-daylogs is in effect -->
   <xsl:if test="$groupbyday='yes' and $separate-daylogs='yes'"><xsl:text>&newl;</xsl:text></xsl:if>
   <!-- first line is indented (other indents are done in wrap template) -->
-  <xsl:text>&tab;*&space;</xsl:text>
+  <xsl:text>&space;*&space;</xsl:text>
   <!-- print the paths and message nicely wrapped -->
   <xsl:call-template name="wrap">
    <xsl:with-param name="txt" select="concat($rev,$paths)" />
   </xsl:call-template>
-  <xsl:text>&tab;&space;&space;</xsl:text>
+  <xsl:text>&newl;&space;&space;&space;</xsl:text>
   <xsl:call-template name="wrap">
    <xsl:with-param name="txt" select="$msg" />
   </xsl:call-template>
      <xsl:call-template name="wrap">
       <xsl:with-param name="txt" select="substring-before($txt,'&newl;')" />
      </xsl:call-template>
-     <!-- print tab -->
-     <xsl:text>&tab;&space;&space;</xsl:text>
+     <xsl:text>&space;&space;&space;</xsl:text>
      <!-- wrap the rest of the text -->
      <xsl:call-template name="wrap">
       <xsl:with-param name="txt" select="substring-after($txt,'&newl;')" />
      </xsl:call-template>
    </xsl:when>
-   <xsl:when test="(string-length($txt) &lt; (($linelen)-9)) or not(contains($txt,' '))">
+   <xsl:when test="(string-length($txt) &lt; (($linelen)-2)) or not(contains($txt,' '))">
     <!-- this is easy, nothing to do -->
     <xsl:value-of select="normalize-space($txt)" />
     <!-- add newline -->
    </xsl:when>
    <xsl:otherwise>
     <!-- find the first line -->
-    <xsl:variable name="tmp" select="substring($txt,1,(($linelen)-10))" />
+    <xsl:variable name="tmp" select="substring($txt,1,(($linelen)-7))" />
     <xsl:variable name="line">
      <xsl:choose>
       <xsl:when test="contains($tmp,' ')">
       </xsl:otherwise>
      </xsl:choose>
     </xsl:variable>
-    <!-- print newline and tab -->
     <xsl:value-of select="normalize-space($line)" />
-    <xsl:text>&newl;&tab;&space;&space;</xsl:text>
+    <xsl:text>&newl;&space;&space;&space;</xsl:text>
     <!-- wrap the rest of the text -->
     <xsl:call-template name="wrap">
      <xsl:with-param name="txt" select="substring($txt,string-length($line)+1)" />