Fixes: lp:1645430 (CSV BOM generation using bom2csv.xsl script with custom entries has wrong format)
https://bugs.launchpad.net/kicad/+bug/1645430
This commit is contained in:
parent
a95df8463d
commit
9a535d4c70
|
@ -59,9 +59,9 @@
|
||||||
<xsl:value-of select="@ref"/><xsl:text>","</xsl:text>
|
<xsl:value-of select="@ref"/><xsl:text>","</xsl:text>
|
||||||
<xsl:value-of select="value"/><xsl:text>","</xsl:text>
|
<xsl:value-of select="value"/><xsl:text>","</xsl:text>
|
||||||
<xsl:value-of select="footprint"/><xsl:text>","</xsl:text>
|
<xsl:value-of select="footprint"/><xsl:text>","</xsl:text>
|
||||||
<xsl:value-of select="datasheet"/><xsl:text>","</xsl:text>
|
<xsl:value-of select="datasheet"/><xsl:text>"</xsl:text>
|
||||||
<xsl:apply-templates select="fields"/><xsl:text>","</xsl:text>
|
<xsl:apply-templates select="fields"/>
|
||||||
<xsl:text>"&nl;</xsl:text>
|
<xsl:text>&nl;</xsl:text>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<!-- table entries with dynamic table head -->
|
<!-- table entries with dynamic table head -->
|
||||||
|
@ -73,7 +73,7 @@
|
||||||
<!-- for all existing head entries -->
|
<!-- for all existing head entries -->
|
||||||
<xsl:for-each select="/export/components/comp/fields/field[generate-id(.) = generate-id(key('headentr',@name)[1])]">
|
<xsl:for-each select="/export/components/comp/fields/field[generate-id(.) = generate-id(key('headentr',@name)[1])]">
|
||||||
<xsl:variable name="allnames" select="@name"/>
|
<xsl:variable name="allnames" select="@name"/>
|
||||||
<xsl:text>,</xsl:text>
|
<xsl:text>,"</xsl:text>
|
||||||
|
|
||||||
<!-- for all field entries in the remembered fields section -->
|
<!-- for all field entries in the remembered fields section -->
|
||||||
<xsl:for-each select="$fieldvar">
|
<xsl:for-each select="$fieldvar">
|
||||||
|
@ -88,6 +88,8 @@
|
||||||
Every non-blank entry is assigned to its proper column.
|
Every non-blank entry is assigned to its proper column.
|
||||||
-->
|
-->
|
||||||
</xsl:for-each>
|
</xsl:for-each>
|
||||||
|
|
||||||
|
<xsl:text>"</xsl:text>
|
||||||
</xsl:for-each>
|
</xsl:for-each>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue