[PATCH 16/17] XHTML export: less-ugly createTabIndent implementation
andrew-libreoffice.org at pileofstuff.org
andrew-libreoffice.org at pileofstuff.org
Thu Aug 14 14:53:56 PDT 2014
From: Andrew Sayers <andrew-libreoffice.org at pileofstuff.org>
"createTabIndent" used to position spans absolutely, so a paragraph with
nothing but indented <span>s would be set to zero height. A document that uses
tabs on adjacent paragraphs will therefore see all the text on top of each
other.
Padding gets much closer to the document's intent.
---
filter/source/xslt/odf2xhtml/export/xhtml/body.xsl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git filter/source/xslt/odf2xhtml/export/xhtml/body.xsl filter/source/xslt/odf2xhtml/export/xhtml/body.xsl
index 60b5808..bbf90d5 100644
--- filter/source/xslt/odf2xhtml/export/xhtml/body.xsl
+++ filter/source/xslt/odf2xhtml/export/xhtml/body.xsl
@@ -594,7 +594,7 @@
<xsl:param name="parentMarginLeft" />
<xsl:param name="pageMarginLeft" />
- <xsl:text>position:absolute;left:</xsl:text>
+ <xsl:text>padding-left:</xsl:text>
<xsl:variable name="tabPosition">
<xsl:if test="$tabStops/style:tab-stop[$tabCount]/@style:position">
<xsl:call-template name="convert2cm">
--
1.8.5.1
More information about the LibreOffice
mailing list