summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authornagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-11-30 08:41:15 +0000
committernagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-11-30 08:41:15 +0000
commit53dd83eebd58dc4bc537ce1cf476a66b5e1f6b1c (patch)
treea0b084bcd52c3d2713e3138129765e80b5f9d721 /ext
parentd268bf305e926b5418d843098e35462cf97df662 (diff)
* 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
Diffstat (limited to 'ext')
-rw-r--r--ext/tk/lib/tk.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/tk/lib/tk.rb b/ext/tk/lib/tk.rb
index 308e6ddfd8..5905746722 100644
--- a/ext/tk/lib/tk.rb
+++ b/ext/tk/lib/tk.rb
@@ -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