[Libreoffice-commits] .: filter/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Nov 26 14:36:25 PST 2012


 filter/source/xslt/odf2xhtml/export/xhtml/body.xsl |   20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)

New commits:
commit 7ce4ca1c49c1183ffb32b0e7f85e29e3d5b2eb37
Author: Peter Jentsch <pjotr at guineapics.de>
Date:   Mon Nov 26 23:33:12 2012 +0100

    fdo#56598 - no whitespace after section numbers in XHTML export
    
    Change-Id: I437b936e37ab577f29736bf413312ba9af393987

diff --git a/filter/source/xslt/odf2xhtml/export/xhtml/body.xsl b/filter/source/xslt/odf2xhtml/export/xhtml/body.xsl
index af58903..6189629 100644
--- a/filter/source/xslt/odf2xhtml/export/xhtml/body.xsl
+++ b/filter/source/xslt/odf2xhtml/export/xhtml/body.xsl
@@ -1262,6 +1262,11 @@
 							<xsl:text>cm;</xsl:text>
 						</xsl:if>
 						<xsl:if test="$minLabelWidth">
+							<xsl:text>display:block;float:</xsl:text>
+							<xsl:call-template name="getOppositeWritingDirection">
+								<xsl:with-param name="globalData" select="$globalData"/>
+								<xsl:with-param name="paraStyleName" select="descendant-or-self::*/@text:style-name"/>
+							</xsl:call-template>;
 							<xsl:text>min-width:</xsl:text>
 							<xsl:call-template name="convert2cm">
 								<xsl:with-param name="value" select="$minLabelWidth"/>
@@ -1963,7 +1968,20 @@
 												<xsl:value-of select="$minLabelWidth"/>
 											</xsl:when>
 											<xsl:otherwise>
+												<xsl:choose>
+													<xsl:when test="$minLabelDist > 0">
 												<xsl:value-of select="$minLabelDist"/>
+													</xsl:when>
+													<xsl:otherwise>
+														<xsl:variable name="listLevelLabelAlignment" select="$listLevelStyle/style:list-level-properties/style:list-level-label-alignment"/>
+														<xsl:variable name="listLevelTextIndent">
+															<xsl:call-template name="convert2cm">
+																<xsl:with-param name="value" select="string($listLevelLabelAlignment/@fo:text-indent)"/>
+															</xsl:call-template>
+														</xsl:variable>
+														<xsl:value-of select="-$listLevelTextIndent"/>
+													</xsl:otherwise>
+												</xsl:choose>
 											</xsl:otherwise>
 										</xsl:choose>
 									</xsl:variable>
@@ -1986,7 +2004,7 @@
 											</xsl:call-template>
 											<xsl:text>;min-width:</xsl:text>
 											<xsl:value-of select="$listLabelWidth"/>
-											<xsl:text>cm</xsl:text>
+											<xsl:text>cm;</xsl:text>
 										</xsl:attribute>
 										<xsl:variable name="labelContent">
 											<xsl:choose>


More information about the Libreoffice-commits mailing list