Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMike Gerwitz <mike.gerwitz@rtspecialty.com>2019-02-01 16:01:42 -0500
committerMike Gerwitz <mike.gerwitz@rtspecialty.com>2019-02-01 16:01:56 -0500
commit22aa59b5cf276c0fb9b6c760c8213726035eaa5e (patch)
treeed3d570866c1e5d881a67efde39235a60a7bf91f /src
parentc7fec6a2401f713db13bf5ebb2c8ea49ad23916e (diff)
downloadtame-22aa59b5cf276c0fb9b6c760c8213726035eaa5e.tar.gz
tame-22aa59b5cf276c0fb9b6c760c8213726035eaa5e.tar.bz2
tame-22aa59b5cf276c0fb9b6c760c8213726035eaa5e.zip
map: Properly default value in translation
A better option is to pre-process all inputs, but I need a quick fix to my stupidity. 0||""==="". * src/current/compiler/map.xsl (lvmc:compile)[lvm:map//lvm:from[*]]: Correct oval default.
Diffstat (limited to 'src')
-rw-r--r--src/current/compiler/map.xsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/current/compiler/map.xsl b/src/current/compiler/map.xsl
index f2c8494..267b7bd 100644
--- a/src/current/compiler/map.xsl
+++ b/src/current/compiler/map.xsl
@@ -745,7 +745,7 @@
<!-- TODO: support arbitrary depth -->
<!-- oval = orig val -->
<text>(function(oval){</text>
- <text>var val = Array.isArray(oval) ? oval : [oval||'']; </text>
+ <text>var val = Array.isArray(oval) ? oval : [oval===undefined?'':oval]; </text>
<text>var ret = []; </text>
<if test="$nested-depth = 0">