Kaydet (Commit) 78f5923e authored tarafından Gian Domenico Ceccarini's avatar Gian Domenico Ceccarini Kaydeden (comit) jan iversen

use . as decimal separator in exported number format

Change-Id: I951995a028274c93e0c0b7226e6d2dceec5a916d
Reviewed-on: https://gerrit.libreoffice.org/33022Tested-by: 's avatarJenkins <ci@libreoffice.org>
Tested-by: 's avatarjan iversen <jani@documentfoundation.org>
Reviewed-by: 's avatarjan iversen <jani@documentfoundation.org>
üst 4142e0a0
...@@ -333,6 +333,7 @@ ...@@ -333,6 +333,7 @@
- 0.0133cm for solid style - 0.0133cm for solid style
- 0.0399cm for double style - 0.0399cm for double style
as there are three border lines painted --> as there are three border lines painted -->
<xsl:decimal-format name = "unifiedFormat" decimal-separator = "." />
<xsl:template name="round-up-border-width"> <xsl:template name="round-up-border-width">
<xsl:param name="borderWidth"/> <xsl:param name="borderWidth"/>
<xsl:param name="multiplier"/> <xsl:param name="multiplier"/>
...@@ -345,11 +346,11 @@ ...@@ -345,11 +346,11 @@
<xsl:variable name="minimalBorderWidth" select="0.0133 * $multiplier"/> <xsl:variable name="minimalBorderWidth" select="0.0133 * $multiplier"/>
<xsl:choose> <xsl:choose>
<xsl:when test="number($borderWidthByCentimeter) &lt; $minimalBorderWidth"> <xsl:when test="number($borderWidthByCentimeter) &lt; $minimalBorderWidth">
<xsl:value-of select="$minimalBorderWidth"/> <xsl:value-of select="format-number($minimalBorderWidth,'0.######','unifiedFormat')"/>
<xsl:text>cm</xsl:text> <xsl:text>cm</xsl:text>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:value-of select="borderWidthByCentimeter"/> <xsl:value-of select="format-number($borderWidthByCentimeter,'0.######','unifiedFormat')"/>
<xsl:text>cm</xsl:text> <xsl:text>cm</xsl:text>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
......
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