Don't generate 'Bugzilla Issue' lines if there is no issue attribute at all

git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/common/trunk@1156961 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/stylesheets/changes2readmehtml.xsl b/stylesheets/changes2readmehtml.xsl
index 61c9d4e..9be54b8 100644
--- a/stylesheets/changes2readmehtml.xsl
+++ b/stylesheets/changes2readmehtml.xsl
@@ -50,7 +50,7 @@
   <xsl:template match="action" mode="li">
     <li>
       <xsl:value-of select="text()"/>
-      <xsl:if test="not(@issue='')">
+      <xsl:if test="@issue and not(@issue='')">
         <a>
           <xsl:attribute name="href">http://issues.apache.org/bugzilla/show_bug.cgi?id=<xsl:value-of select="@issue"/></xsl:attribute>
           <xsl:text>BugZilla Issue </xsl:text><xsl:value-of select="@issue"/><xsl:text></xsl:text>
diff --git a/stylesheets/changes2whatsnew.xsl b/stylesheets/changes2whatsnew.xsl
index 7ae3a76..76ed9b5 100644
--- a/stylesheets/changes2whatsnew.xsl
+++ b/stylesheets/changes2whatsnew.xsl
@@ -54,12 +54,13 @@
 
   <xsl:template match="action" mode="li">
     <xsl:value-of select="text()"/>
-    <xsl:if test="not(@issue='')">
+    <xsl:if test="@issue and not(@issue='')">
       <xsl:text>
         BugZilla Issue </xsl:text><xsl:value-of select="@issue"/><xsl:text>
-
-</xsl:text>
+      </xsl:text>
     </xsl:if>
+    <xsl:text>
+</xsl:text>
   </xsl:template>
 
   <!-- dont copy the text and unmatched nodes as per default in xsl -->