Hi all,
If I have the following Array: [“a”,"",“b”], then I suppose that the
tk-ized version should be “a {} b” instead of “a b”.
Shouldn’t the Tk#array2tk_list around tk.rb’s line 202 should be
something like this?
def array2tk_list(ary)
ary.collect{|e|
if e.kind_of? Array
"{#{array2tk_list(e)}}“
elsif e.kind_of? Hash
”{#{e.to_a.collect{|ee| array2tk_list(ee)}.join(’ ')}}"
else
s = _get_eval_string(e)
(s.index(/\s/))? “{#{s}}”: s
Instead:
(s.index(/\s/) or s.size==0)? "{#{s}}": s
end
}.join(" ")
end
Thanks,
Ferenc