Navigation Menu

Skip to content

Commit

Permalink
* lib/hpricot/inspect.rb: inspecting empty document bug, courtesy of @…
Browse files Browse the repository at this point in the history
  • Loading branch information
_why committed Mar 25, 2009
1 parent dd71be9 commit 92e8000
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hpricot/inspect.rb
Expand Up @@ -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
Expand Down

0 comments on commit 92e8000

Please sign in to comment.