diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2021-01-07 22:41:58 -0800 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2021-01-07 22:43:40 -0800 |
commit | 98bd7e87a08b86c7aa95502428015c3f7b4aae75 (patch) | |
tree | 20466d9062363559cf1fdaaa331bf9655dc639b1 /lib/irb/color_printer.rb | |
parent | d6b2b5bd47952efb6928db7ff1d393f6973e7ccd (diff) |
[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
Diffstat (limited to 'lib/irb/color_printer.rb')
-rw-r--r-- | lib/irb/color_printer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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) |