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:
parent
172fe6bb6b
commit
9a30bbc32c
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue