Date: prev next · Thread: first prev next last
2014 Archives by date, by thread · List index


From: Andrew Sayers <andrew-libreoffice.org@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


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.