helpauthoring/filter/xmlhelp2soffice.xsl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
New commits: commit 7876235adbb4b3da4a0e7e809524b21d4fb47c88 Author: Regina Henschel <[email protected]> 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 <[email protected]> Tested-by: Jan Holesovsky <[email protected]> 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="',@id,'" VISIBILITY="',@visibility,'">')"/> + <xsl:choose> + <xsl:when test="@visibility='hidden'"> + <xsl:value-of select="concat('<VAR ID="',@id,'" VISIBILITY="hidden">')"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="concat('<VAR ID="',@id,'">')"/> + </xsl:otherwise> + </xsl:choose> </text:variable-set> </text:span> <xsl:apply-templates /> _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
