[Libreoffice-commits] dev-tools.git: helpauthoring/filter

Regina Henschel rb.henschel at t-online.de
Wed Oct 7 05:48:24 PDT 2015


 helpauthoring/filter/xmlhelp2soffice.xsl |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

New commits:
commit 7876235adbb4b3da4a0e7e809524b21d4fb47c88
Author: Regina Henschel <rb.henschel at t-online.de>
Date:   Wed Oct 7 12:29:22 2015 +0200

    tdf#94201 Dont import blank visibility attribute of <variable> tag
    
    The default is visibility='visible' and need not be written. A blank value
    is not allowed. So write the attribute only in case visibility='hidden'.
    
    Change-Id: Iebf23ede13fb8297f83af7cd987128eacf6246eb
    Reviewed-on: https://gerrit.libreoffice.org/19223
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>
    Tested-by: Jan Holesovsky <kendy at collabora.com>

diff --git a/helpauthoring/filter/xmlhelp2soffice.xsl b/helpauthoring/filter/xmlhelp2soffice.xsl
index e9221ad..a8584ed 100644
--- a/helpauthoring/filter/xmlhelp2soffice.xsl
+++ b/helpauthoring/filter/xmlhelp2soffice.xsl
@@ -1244,7 +1244,14 @@ VARIABLE
     <xsl:template match="variable">
         <text:span text:style-name="hlp_aux_tag">
             <text:variable-set text:name="VAR_" text:value-type="string">
-                <xsl:value-of select="concat('<VAR ID="', at id,'" VISIBILITY="', at visibility,'">')"/>
+                <xsl:choose>
+                    <xsl:when test="@visibility='hidden'">
+                        <xsl:value-of select="concat('<VAR ID="', at id,'" VISIBILITY="hidden">')"/>
+                    </xsl:when>
+                    <xsl:otherwise>
+                        <xsl:value-of select="concat('<VAR ID="', at id,'">')"/>
+                    </xsl:otherwise>
+                </xsl:choose>
             </text:variable-set>
         </text:span>
         <xsl:apply-templates />


More information about the Libreoffice-commits mailing list