Reformat with Hpricot?

Rubies:

Here’s how to indent with REXML:

doc = Document.new(’’)
indent_spaces = 2
doc.write($stdout, indent_space)

That produces:

How can Hpricot “pretty print” like that??

Very interesting question. I don’t know the answer, but I’ll bump
this post for ya!