summaryrefslogtreecommitdiff
path: root/array.rb
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2022-05-26 13:25:22 -0700
committerJeremy Evans <code@jeremyevans.net>2022-07-21 08:02:32 -0700
commit423b41cba77719b4f62aa530593ad36a990f7c74 (patch)
tree546b853d2bd8396719d426262436c0e4215b9a5b /array.rb
parentcdbb9b8555b4ddcc4c557f25ad785cae6209478d (diff)
downloadruby-423b41cba77719b4f62aa530593ad36a990f7c74.tar.gz
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]
Diffstat (limited to 'array.rb')
0 files changed, 0 insertions, 0 deletions