From 92e8000084d531cedd7c98e829fb9a75aafcca25 Mon Sep 17 00:00:00 2001 From: _why Date: Tue, 24 Mar 2009 22:43:20 -0700 Subject: [PATCH] * lib/hpricot/inspect.rb: inspecting empty document bug, courtesy of @TalLevAmi. --- lib/hpricot/inspect.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hpricot/inspect.rb b/lib/hpricot/inspect.rb index 67df4d6..e46433e 100644 --- a/lib/hpricot/inspect.rb +++ b/lib/hpricot/inspect.rb @@ -11,7 +11,7 @@ def pretty_print(q) class Doc def pretty_print(q) - q.object_group(self) { children.each {|elt| q.breakable; q.pp elt } } + q.object_group(self) { children.each {|elt| q.breakable; q.pp elt } if children } end alias inspect pretty_print_inspect end