pry/pry — Issue #402: Pry should handle forced \r\n more gracefully (stripping it)
Author: envygeeks
Created: 2012-01-03 22:20:13+00:00
State: open

In order for Clippy to avoid bugs in other pieces of software it pastes to it forces \r\n (even on Linux because the buggy software we try to avoid is Pidgin on Linux) however when pasting into Pry, it converts it to 2 new lines. Perhaps Pry should strip \r\n like other pieces of software do when they experience it on Linux?

[6] pry(main)> 100.thousand.times do
[6] pry(main)*
[6] pry(main)* puts 'Yo dawg, I hurd you like loops, so I built you one that loops 100 thousand times.'
[6] pry(main)*
[6] pry(main)* end

https://github.com/envygeeks/clippy/blob/master/lib/clippy.rb#L37