diff options
author | Richard E. Dodson <richard.elias.dodson@gmail.com> | 2017-10-22 16:21:31 -0500 |
---|---|---|
committer | Richard E. Dodson <richard.elias.dodson@gmail.com> | 2017-10-22 16:21:31 -0500 |
commit | b138d128b4ac3aa376d8a4712c49cfda6da4a7bb (patch) | |
tree | ced7a4eca947ab1519a077851b6d1e77e23476ab | |
parent | 9617afd74647014027ea5ed981631b48d34637c9 (diff) | |
download | pry-b138d128b4ac3aa376d8a4712c49cfda6da4a7bb.tar.gz |
Partially revert "Issue #1647: Fix String#pp output color"
This commit partially reverts commit ba6903e0b1afc9e6a80462c40d66c6a07012b606 and adds back the comment re: Ruby 2.4+ String#pretty_print.
-rw-r--r-- | lib/pry/color_printer.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/pry/color_printer.rb b/lib/pry/color_printer.rb index 150e6a1f..2ba01086 100644 --- a/lib/pry/color_printer.rb +++ b/lib/pry/color_printer.rb @@ -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 |