From 98bd7e87a08b86c7aa95502428015c3f7b4aae75 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Thu, 7 Jan 2021 22:41:58 -0800 Subject: [ruby/irb] Make IRB::ColorPrinter.pp compatible with PP.pp The incompatible interface is not helpful, again if you want to use it as a standalone library, falling it back to PP. Original PP.pp also ends with `out << "\n"`. https://github.com/ruby/irb/commit/4c74c7d84c --- lib/irb/color_printer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/irb/color_printer.rb') diff --git a/lib/irb/color_printer.rb b/lib/irb/color_printer.rb index 11885f465d..73a150f881 100644 --- a/lib/irb/color_printer.rb +++ b/lib/irb/color_printer.rb @@ -8,7 +8,7 @@ module IRB q = ColorPrinter.new(out, width) q.guard_inspect_key {q.pp obj} q.flush - out + out << "\n" end def text(str, width = nil) -- cgit v1.2.3