[Libreoffice-commits] core.git: 2 commits - filter/source
Svante Schubert (via logerrit)
logerrit at kemper.freedesktop.org
Tue Mar 2 12:21:02 UTC 2021
filter/source/xslt/odf2xhtml/export/xhtml/body.xsl | 14 ++++++++++++--
filter/source/xslt/odf2xhtml/export/xhtml/header.xsl | 2 +-
2 files changed, 13 insertions(+), 3 deletions(-)
New commits:
commit 83def17aa0c861b05582dc37c8a9d4ed39e3ba33
Author: Svante Schubert <svante.schubert at gmail.com>
AuthorDate: Mon Aug 24 11:20:32 2020 +0200
Commit: Michael Stahl <michael.stahl at allotropia.de>
CommitDate: Tue Mar 2 13:20:24 2021 +0100
HTML XSLT: Set default to 0 in case of not-a-number: min-width:NaNcm
This had a conflict with commit 9804cb2f195451811eff8924d7997a3cbd6d679d
Fixing bodx.xsl: Invalid min-width:NaN check (Michael's GitHub Review)
Change-Id: I0bd5bbae1411c6b4892bf332e6ff3c7027f8c341
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111609
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl at allotropia.de>
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> </xsl:comment>
commit 7f2eb7b641a9864d2335ed4abdaaee1b79dd1028
Author: Svante Schubert <svante.schubert at gmail.com>
AuthorDate: Mon Aug 24 09:30:58 2020 +0200
Commit: Michael Stahl <michael.stahl at allotropia.de>
CommitDate: Tue Mar 2 13:19:59 2021 +0100
HTML XSLT: Fixing CSS selector
Change-Id: I4c26f71936e6df655bb5c11bf9137b91ca894cce
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111608
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl at allotropia.de>
diff --git a/filter/source/xslt/odf2xhtml/export/xhtml/header.xsl b/filter/source/xslt/odf2xhtml/export/xhtml/header.xsl
index 4eeb9b0b9837..8264aa50ad67 100644
--- a/filter/source/xslt/odf2xhtml/export/xhtml/header.xsl
+++ b/filter/source/xslt/odf2xhtml/export/xhtml/header.xsl
@@ -108,7 +108,7 @@
<xsl:text>/* "li span.odfLiEnd" - IE 7 issue*/</xsl:text>
<xsl:text>
</xsl:text>
-<xsl:text>li span. { clear: both; line-height:0; width:0; height:0; margin:0; padding:0; }
+<xsl:text>li span { clear: both; line-height:0; width:0; height:0; margin:0; padding:0; }
</xsl:text>
<xsl:text>span.footnodeNumber { padding-right:1em; }
</xsl:text>
More information about the Libreoffice-commits
mailing list