poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r1674384 - in /poi/site: publish/changes.html src/documentation/resources/stylesheets/changes2document.xsl
Date Fri, 17 Apr 2015 19:49:13 GMT
Author: nick
Date: Fri Apr 17 19:49:13 2015
New Revision: 1674384

URL: http://svn.apache.org/r1674384
Log:
Github support in changelog

Modified:
    poi/site/publish/changes.html
    poi/site/src/documentation/resources/stylesheets/changes2document.xsl

Modified: poi/site/publish/changes.html
URL: http://svn.apache.org/viewvc/poi/site/publish/changes.html?rev=1674384&r1=1674383&r2=1674384&view=diff
==============================================================================
--- poi/site/publish/changes.html (original)
+++ poi/site/publish/changes.html Fri Apr 17 19:49:13 2015
@@ -293,7 +293,7 @@ if (VERSION > 3) {
 <img class="icon" alt="fix" src="images/fix.jpg"> When saving an OPCPackage with no
Core Properties (eg from Jasper Reports), ensure they are always added even if not yet used</li>
         
 <li>
-<img class="icon" alt="fix" src="images/fix.jpg"> <a href="https://bz.apache.org/bugzilla/show_bug.cgi?id=github-18">github-18</a>
- Handle documents with a picture-only header</li>
+<img class="icon" alt="fix" src="images/fix.jpg"> <a href="https://github.com/apache/poi/pull/18">github-18</a>
- Handle documents with a picture-only header</li>
         
 <li>
 <img class="icon" alt="fix" src="images/fix.jpg"> <a href="https://bz.apache.org/bugzilla/show_bug.cgi?id=57622">57622</a>
- Change from XMLEventFactory.newFactory to XMLEventFactory.newInstance, for IBM JDK Compatibility</li>

Modified: poi/site/src/documentation/resources/stylesheets/changes2document.xsl
URL: http://svn.apache.org/viewvc/poi/site/src/documentation/resources/stylesheets/changes2document.xsl?rev=1674384&r1=1674383&r2=1674384&view=diff
==============================================================================
--- poi/site/src/documentation/resources/stylesheets/changes2document.xsl (original)
+++ poi/site/src/documentation/resources/stylesheets/changes2document.xsl Fri Apr 17 19:49:13
2015
@@ -23,8 +23,9 @@
     version="1.0">
 
  <xsl:param name="bugtracking-url"/>
+ <!-- FIXME : Get the Github URL from properties -->
+ <xsl:variable name="github-url" select="'https://github.com/apache/poi'"/>
 
- <!-- FIXME : Github -->
  <xsl:variable name="bugdetails" select="concat($bugtracking-url, 'show_bug.cgi?id=')"/>
  <xsl:variable name="buglist" select="concat($bugtracking-url, 'buglist.cgi?bug_id=')"/>
 
@@ -65,9 +66,18 @@
       </link>
      </xsl:when>
      <xsl:otherwise>
-      <link href="{$bugdetails}{@fixes-bug}">
-       <xsl:text></xsl:text><xsl:value-of select="@fixes-bug"/>
-      </link>
+      <xsl:choose>
+       <xsl:when test="contains(@fixes-bug, 'github-')">
+         <link href="{$github-url}/pull/{translate(@fixes-bug,'github-','')}">
+         <xsl:text></xsl:text><xsl:value-of select="@fixes-bug"/>
+         </link>
+       </xsl:when>
+       <xsl:otherwise>
+         <link href="{$bugdetails}{@fixes-bug}">
+         <xsl:text></xsl:text><xsl:value-of select="@fixes-bug"/>
+         </link>
+       </xsl:otherwise>
+      </xsl:choose>
      </xsl:otherwise>
     </xsl:choose>
     <xsl:text> - </xsl:text>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message