summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--filter/source/xslt/odf2xhtml/export/xhtml/body.xsl14
1 files changed, 12 insertions, 2 deletions
diff --git a/filter/source/xslt/odf2xhtml/export/xhtml/body.xsl b/filter/source/xslt/odf2xhtml/export/xhtml/body.xsl
index 9408d971f9c6..09d4ed43c5e2 100644
--- a/filter/source/xslt/odf2xhtml/export/xhtml/body.xsl
+++ b/filter/source/xslt/odf2xhtml/export/xhtml/body.xsl
@@ -2042,7 +2042,12 @@
<xsl:with-param name="paraStyleName" select="descendant-or-self::*/@text:style-name"/>
</xsl:call-template>
<xsl:text>;min-width:</xsl:text>
- <xsl:value-of select="translate($listLabelWidth,',','.')"/>
+ <xsl:choose>
+ <xsl:when test="$listLabelWidth and not($listLabelWidth='') and not($listLabelWidth='NaN')">
+ <xsl:value-of select="translate($listLabelWidth,',','.')"/>
+ </xsl:when>
+ <xsl:otherwise>0</xsl:otherwise>
+ </xsl:choose>
<xsl:text>cm;</xsl:text>
</xsl:attribute>
<xsl:variable name="labelContent">
@@ -2104,7 +2109,12 @@
<xsl:with-param name="paraStyleName" select="descendant-or-self::*/@text:style-name"/>
</xsl:call-template>
<xsl:text>;min-width:</xsl:text>
- <xsl:value-of select="translate($listLabelWidth,',','.')"/>
+ <xsl:choose>
+ <xsl:when test="$listLabelWidth and not($listLabelWidth='') and not($listLabelWidth='NaN')">
+ <xsl:value-of select="translate($listLabelWidth,',','.')"/>
+ </xsl:when>
+ <xsl:otherwise>0</xsl:otherwise>
+ </xsl:choose>
<xsl:text>cm</xsl:text>
</xsl:attribute>
<xsl:comment>&#160;</xsl:comment>