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

Partially revert "Issue : 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:
Richard E. Dodson 2017-10-22 16:21:31 -05:00
parent 9617afd746
commit b138d128b4
No known key found for this signature in database
GPG key ID: C59F7099F016BFF8

View file

@ -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