summaryrefslogtreecommitdiff
path: root/filter/source/xslt
diff options
context:
space:
mode:
authorAndreas Brandner <Andreas.Brandner@cib.de>2018-04-13 14:07:58 +0200
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2018-04-18 14:52:23 +0200
commitcc10b063235dcb25ad16f697ea0b1ff91a10bacb (patch)
tree17ffefc73fe399d67305622bc94b0035b9a093de /filter/source/xslt
parent42595315324e2b06ec661d1069573c9ec99650a4 (diff)
tdf#116990 Unwanted line breaks if ODS export to XHTML
Change-Id: I86cc48d74f0572a7ba18beabbaf307bcaa069d38 Reviewed-on: https://gerrit.libreoffice.org/53087 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'filter/source/xslt')
-rw-r--r--filter/source/xslt/odf2xhtml/export/xhtml/header.xsl6
1 files changed, 6 insertions, 0 deletions
diff --git a/filter/source/xslt/odf2xhtml/export/xhtml/header.xsl b/filter/source/xslt/odf2xhtml/export/xhtml/header.xsl
index b75d6ff7cfda..526e5cc56ae8 100644
--- a/filter/source/xslt/odf2xhtml/export/xhtml/header.xsl
+++ b/filter/source/xslt/odf2xhtml/export/xhtml/header.xsl
@@ -93,6 +93,12 @@
</xsl:choose>
<xsl:text>h1, h2, h3, h4, h5, h6 { clear:both;}
</xsl:text>
+<xsl:choose>
+ <xsl:when test="/*/office:body/office:spreadsheet">
+ <xsl:text>p { white-space: nowrap; }
+ </xsl:text>
+ </xsl:when>
+</xsl:choose>
<xsl:text>ol, ul { margin:0; padding:0;}
</xsl:text>
<xsl:text>li { list-style: none; margin:0; padding:0;}