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.master
parent
c7fec6a240
commit
22aa59b5cf
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue