Skip to content

Commit

Permalink
Pry::ColorPrinter.pp: add newline argument and pass it on to PP
Browse files Browse the repository at this point in the history
  • Loading branch information
deborasetton committed Apr 20, 2017
1 parent 1f64463 commit c7699e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pry/color_printer.rb
Expand Up @@ -12,8 +12,8 @@ class ColorPrinter < ::PP

CodeRay::Encoders::Terminal::TOKEN_COLORS[:comment][:self] = "\e[1;34m"

def self.pp(obj, out = $>, width = 79)
q = ColorPrinter.new(out, width)
def self.pp(obj, out = $>, width = 79, newline = "\n")
q = ColorPrinter.new(out, width, newline)
q.guard_inspect_key { q.pp obj }
q.flush
out << "\n"
Expand Down

0 comments on commit c7699e5

Please sign in to comment.