diff options
author | Mike Gerwitz <mike.gerwitz@rtspecialty.com> | 2019-02-01 16:01:42 -0500 |
---|---|---|
committer | Mike Gerwitz <mike.gerwitz@rtspecialty.com> | 2019-02-01 16:01:56 -0500 |
commit | 22aa59b5cf276c0fb9b6c760c8213726035eaa5e (patch) | |
tree | ed3d570866c1e5d881a67efde39235a60a7bf91f /src | |
parent | c7fec6a2401f713db13bf5ebb2c8ea49ad23916e (diff) | |
download | tame-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.xsl | 2 |
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"> |