ruby-changes:7914
From: mame <ko1@a...>
Date: Sat, 20 Sep 2008 11:45:03 +0900 (JST)
Subject: [ruby-changes:7914] Ruby:r19435 (trunk): * lib/optparse.rb (summarize): separator "" should output new line.
mame 2008-09-20 11:44:49 +0900 (Sat, 20 Sep 2008) New Revision: 19435 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=19435 Log: * lib/optparse.rb (summarize): separator "" should output new line. Modified files: trunk/ChangeLog trunk/lib/optparse.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 19434) +++ ChangeLog (revision 19435) @@ -1,3 +1,7 @@ +Sat Sep 20 11:43:08 2008 Yusuke Endoh <mame@t...> + + * lib/optparse.rb (summarize): separator "" should output new line. + Sat Sep 20 08:07:34 2008 NARUSE, Yui <naruse@r...> * parse.y: strings which contain only US-ASCII don't force to have Index: lib/optparse.rb =================================================================== --- lib/optparse.rb (revision 19434) +++ lib/optparse.rb (revision 19435) @@ -632,7 +632,7 @@ list.each do |opt| if opt.respond_to?(:summarize) # perhaps OptionParser::Switch opt.summarize(*args, &block) - elsif !opt + elsif !opt or opt.empty? yield("") elsif opt.respond_to?(:each_line) opt.each_line(&block) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/