diff options
author | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-30 08:41:15 +0000 |
---|---|---|
committer | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-30 08:41:15 +0000 |
commit | ef324a1000aef9dba5f4e7ff66074891c5ac40f5 (patch) | |
tree | a0b084bcd52c3d2713e3138129765e80b5f9d721 | |
parent | 53ec59de18ddbf279650b0ce09e2791cf4200d57 (diff) | |
download | ruby-ef324a1000aef9dba5f4e7ff66074891c5ac40f5.tar.gz ruby-ef324a1000aef9dba5f4e7ff66074891c5ac40f5.tar.xz ruby-ef324a1000aef9dba5f4e7ff66074891c5ac40f5.zip |
* ext/tk/lib/tk.rb: bug fix [ruby-talk:86746]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | ext/tk/lib/tk.rb | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Sun Nov 30 17:37:36 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp> + + * ext/tk/lib/tk.rb: bug fix [ruby-talk:86746] + Sun Nov 30 13:02:00 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org> * lib/soap/encodingstyle/soapHandler.rb: refactoring - Simplifying diff --git a/ext/tk/lib/tk.rb b/ext/tk/lib/tk.rb index 308e6ddfd..590574672 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 |