Permalink
Browse files

Chomp to avoid duplicating newlines

  • Loading branch information...
1 parent 172fe6b commit 9a30bbc32c18c3dca538730c5e22b1b7a1a718db @ConradIrwin ConradIrwin committed Jul 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/pry/pry_instance.rb
View
@@ -405,7 +405,7 @@ def retrieve_line(eval_string, target)
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)

0 comments on commit 9a30bbc

Please sign in to comment.