Kaydet (Commit) 3f6946cf authored tarafından Peter Jentsch's avatar Peter Jentsch

fix fdo#57641 table alignment broken in XHTML export

Change-Id: Ibbb88c1ecaaac14866145753e383609db2a3dd1a
üst ab5af23e
...@@ -297,9 +297,17 @@ ...@@ -297,9 +297,17 @@
<xsl:template match="@table:align"> <xsl:template match="@table:align">
<xsl:choose> <xsl:choose>
<xsl:when test=".='left'"> <xsl:when test=".='left'">
<xsl:text>margin-left:0px; margin-right:auto;</xsl:text></xsl:when> <xsl:if test="not(../@fo:margin-left)">margin-left:0px; </xsl:if>
<xsl:text>margin-right:auto;</xsl:text></xsl:when>
<xsl:when test=".='right'"> <xsl:when test=".='right'">
<xsl:text>margin-left:auto; margin-right: 0px;</xsl:text></xsl:when> <xsl:text>margin-left:auto</xsl:text>
<xsl:if test="not(../@fo:margin-right)">
; margin-right: 0px;
</xsl:if>
</xsl:when>
<xsl:when test=".='center'">
margin-left:auto;margin-right:auto;
</xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:text>float:none; </xsl:text> <xsl:text>float:none; </xsl:text>
</xsl:otherwise> </xsl:otherwise>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment