Project

General

Profile

« Previous | Next » 

Revision 423b41cb

Added by jeremyevans (Jeremy Evans) over 3 years ago

Make String#each_line work correctly with paragraph separator and chomp

Previously, it was including one newline when chomp was used,
which is inconsistent with IO#each_line behavior. This makes
behavior consistent with IO#each_line, chomping all paragraph
separators (multiple consecutive newlines), but not single
newlines.

Partially Fixes [Bug #18768]