Skip to content

Commit

Permalink
Fix the minifier, again
Browse files Browse the repository at this point in the history
  • Loading branch information
gucci-on-fleek committed Sep 7, 2024
1 parent 1b5c350 commit c8c2476
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 3 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ minify_html () {
}

minify_xml () {
if [ "$1" = "items-to-tsv.xslt" ]; then
return
fi
command minify --type=xml -o dist/"$1" src/"$1"
}

Expand Down
8 changes: 2 additions & 6 deletions src/items-to-tsv.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,8 @@
SPDX-FileCopyrightText: 2024 Max Chernoff
-->
<xsl:output method="text" encoding="utf-8" />

<xsl:variable name="_col_sep">x<![CDATA[ ]]></xsl:variable>
<xsl:variable name="col_sep" select="substring($_col_sep, 2)" />
<xsl:variable name="_row_sep">x<![CDATA[
]]></xsl:variable>
<xsl:variable name="row_sep" select="substring($_row_sep, 2)" />
<xsl:variable name="col_sep" select="'&#x9;'" />
<xsl:variable name="col_sep" select="'&#xA;'" />

<xsl:template match="/items">
<xsl:value-of select="concat('Item Name', $col_sep)" />
Expand Down

0 comments on commit c8c2476

Please sign in to comment.