Fix dive notes import from Suundo SDM
The xslt translation didn't add the <notes> tag for the notes, so while it did select the notes from the SDM file, that never made it into the subsurface notes. Also added weather info to the notes, mainly as an example. There are probably other things we could do, but this fixes at least the trivial test-case from Szymon Kosecki. Reported-by: Szymon Kosecki <skosecki@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
@@ -62,9 +62,14 @@
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
|
||||
<notes>
|
||||
<xsl:if test="LOGNOTES != ''">
|
||||
<xsl:value-of select="LOGNOTES" />
|
||||
</xsl:if>
|
||||
<xsl:if test="WEATHER != ''">
|
||||
Weather: <xsl:value-of select="WEATHER" />
|
||||
</xsl:if>
|
||||
</notes>
|
||||
|
||||
<!-- FIXME: add support for multiple cylinders, need sample data -->
|
||||
<cylinder>
|
||||
|
||||
Reference in New Issue
Block a user