[ruby-cvs:64350] nobu:r57184 (trunk): string.c: consistent paragraph mode with IO

nobu at ruby-lang.org nobu at ruby-lang.org
Mon Dec 26 08:50:09 JST 2016


nobu	2016-12-26 08:50:09 +0900 (Mon, 26 Dec 2016)

  New Revision: 57184

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57184

  Log:
    string.c: consistent paragraph mode with IO
    
    * string.c (rb_str_enumerate_lines): in paragraph mode, do not
      include newlines which separate paragraphs, so that it will be
      consistent with IO#each_line.

  Modified files:
    trunk/string.c
    trunk/test/ruby/test_string.rb


More information about the ruby-cvs mailing list