From c46ba8e9a3b1b6c13232c1af3e9f2efd4a3eec98 Mon Sep 17 00:00:00 2001 From: Kouhei Sutou Date: Sat, 25 May 2019 15:54:02 +0900 Subject: [ruby/rexml] Use PP https://github.com/ruby/rexml/commit/185062a4a4 --- lib/rexml/xpath_parser.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/rexml/xpath_parser.rb b/lib/rexml/xpath_parser.rb index b931354625..0f0e7a5627 100644 --- a/lib/rexml/xpath_parser.rb +++ b/lib/rexml/xpath_parser.rb @@ -1,4 +1,7 @@ # frozen_string_literal: false + +require "pp" + require_relative 'namespace' require_relative 'xmltokens' require_relative 'attribute' @@ -620,7 +623,9 @@ module REXML def trace(*args) indent = " " * @nest - puts("#{indent}#{args.inspect}") + PP.pp(args, "").each_line do |line| + puts("#{indent}#{line}") + end end def enter(tag, *args) -- cgit v1.2.3