mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Partially revert "Issue #1647: Fix String#pp output color"
This commit partially reverts commit ba6903e0b1
and adds back the comment re: Ruby 2.4+ String#pretty_print.
This commit is contained in:
parent
9617afd746
commit
b138d128b4
1 changed files with 2 additions and 0 deletions
|
@ -32,6 +32,8 @@ class Pry
|
|||
|
||||
def pp(obj)
|
||||
if String === obj
|
||||
# Avoid calling Ruby 2.4+ String#pretty_print that prints multiline
|
||||
# Strings prettier
|
||||
text(obj.inspect)
|
||||
else
|
||||
super
|
||||
|
|
Loading…
Add table
Reference in a new issue