summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorPeter Jentsch <pjotr@guineapics.de>2012-11-26 21:40:56 +0100
committerPeter Jentsch <pjotr@guineapics.de>2012-11-26 21:48:11 +0100
commit5781a5ea3d502332cda77ab75aa7ddd1c9ca36f7 (patch)
tree38eb60152f1296194247a84a2b60565aa7d95ca7 /filter
parent52252bb529a41979aa4f11d529ae555401ae8563 (diff)
fdo#57575 (xhtml hairline borders), fdo#57538 - xhtml right just borders.
Change-Id: I9788e80829e4e9af17b4e2fd203849ca0b5e9899
Diffstat (limited to 'filter')
-rw-r--r--filter/source/xslt/odf2xhtml/export/common/styles/style_mapping_css.xsl11
1 files changed, 6 insertions, 5 deletions
diff --git a/filter/source/xslt/odf2xhtml/export/common/styles/style_mapping_css.xsl b/filter/source/xslt/odf2xhtml/export/common/styles/style_mapping_css.xsl
index 1dedcc2349ae..b7573fe1bae6 100644
--- a/filter/source/xslt/odf2xhtml/export/common/styles/style_mapping_css.xsl
+++ b/filter/source/xslt/odf2xhtml/export/common/styles/style_mapping_css.xsl
@@ -56,7 +56,10 @@
<xsl:value-of select="$borderType"/>
<xsl:text>-width:</xsl:text>
- <xsl:value-of select="$borderWidthFixed"/>
+ <xsl:choose>
+ <xsl:when test="$borderWidth = '0.05pt'">thin</xsl:when>
+ <xsl:otherwise><xsl:value-of select="$borderWidthFixed"/></xsl:otherwise>
+ </xsl:choose>
<xsl:text>; </xsl:text>
<xsl:value-of select="$borderType"/>
<xsl:text>-style:</xsl:text>
@@ -294,11 +297,9 @@
<xsl:template match="@table:align">
<xsl:choose>
<xsl:when test=".='left'">
- <!-- Note: problems with meeting minutes example
- <xsl:text>float:right; </xsl:text> --></xsl:when>
+ <xsl:text>margin-left:0px; margin-right:auto;</xsl:text></xsl:when>
<xsl:when test=".='right'">
- <!-- Note: problems with meeting minutes example
- <xsl:text>float:left; </xsl:text> --></xsl:when>
+ <xsl:text>margin-left:auto; margin-right: 0px;</xsl:text></xsl:when>
<xsl:otherwise>
<xsl:text>float:none; </xsl:text>
</xsl:otherwise>