[PATCH 2/3] Fix imiperial conversion on CSV import

Miika Turkia miika.turkia at gmail.com
Wed Nov 9 20:47:45 PST 2016


Somehow the divider lost one zero during copypaste to this XSLT file.

Signed-off-by: Miika Turkia <miika.turkia at gmail.com>
---
 xslt/manualcsv2xml.xslt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xslt/manualcsv2xml.xslt b/xslt/manualcsv2xml.xslt
index 6dbcc5c..da73c45 100644
--- a/xslt/manualcsv2xml.xslt
+++ b/xslt/manualcsv2xml.xslt
@@ -282,7 +282,7 @@
                   <xsl:value-of select="$size"/>
                 </xsl:when>
                 <xsl:otherwise>
-                  <xsl:value-of select="format-number((translate($size, translate($size, '0123456789', ''), '') * 14.7 div 3000) div 0.35315, '#.#')"/>
+                  <xsl:value-of select="format-number((translate($size, translate($size, '0123456789', ''), '') * 14.7 div 3000) div 0.035315, '#.#')"/>
                 </xsl:otherwise>
               </xsl:choose>
             </xsl:attribute>
-- 
2.5.0



More information about the subsurface mailing list