class Hpricot::Elem
def pretty_print(q)
def pretty_print(q) if empty? q.group(1, '{emptyelem', '}') { q.breakable; q.pp @stag } else q.group(1, "{elem", "}") { q.breakable; q.pp @stag if @children @children.each {|elt| q.breakable; q.pp elt } end if @etag q.breakable; q.pp @etag end } end end