* ext/tk/lib/tk.rb: bug fix [ruby-talk:86746]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nagai 2003-11-30 08:41:15 +00:00
parent d268bf305e
commit 53dd83eebd
2 changed files with 5 additions and 1 deletions

View file

@ -207,7 +207,7 @@ module TkComm
"{#{e.to_a.collect{|ee| array2tk_list(ee)}.join(' ')}}"
else
s = _get_eval_string(e)
(s.index(/\s/))? "{#{s}}": s
(s.index(/\s/) || s.size == 0)? "{#{s}}": s
end
}.join(" ")
end