1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Chomp to avoid duplicating newlines

This commit is contained in:
Conrad Irwin 2012-07-28 01:51:19 -07:00
parent 172fe6bb6b
commit 9a30bbc32c

View file

@ -405,7 +405,7 @@ class Pry
begin
if !process_command(val, eval_string, target)
eval_string << "#{indented_val}\n" unless val.empty?
eval_string << "#{indented_val.chomp}\n" unless val.empty?
end
ensure
Pry.history << indented_val unless input.is_a?(StringIO)