Skip to content

Commit

Permalink
feat: Add newline after each file in JSON output (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpogue authored Dec 5, 2023
1 parent 6d0b423 commit 2db079c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions json.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,13 @@
"done": true,
"files": [
<xsl:for-each select="descendant::resource[license-approval/@name='false']">
<xsl:text> "</xsl:text>
<xsl:if test="position() != 1"><xsl:text> </xsl:text></xsl:if>
<xsl:text>"</xsl:text>
<xsl:value-of select="@name"/>
<xsl:text>"</xsl:text>
<xsl:if test="position() != last()"><xsl:text>,</xsl:text></xsl:if>
<xsl:if test="position() != last()"><xsl:text>,&#xA;</xsl:text></xsl:if>
</xsl:for-each>
]
}
</xsl:template>
</xsl:stylesheet>
</xsl:stylesheet>

0 comments on commit 2db079c

Please sign in to comment.