From: Philip Gatt Date: 2007-09-04T09:46:18+09:00 Subject: Re: reformat with Hpricot? Very interesting question. I don't know the answer, but I'll *bump* this post for ya! On Aug 23, 2007, at 7:05 AM, Phlip wrote: > 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?? > > -- > Phlip > http://www.oreillynet.com/onlamp/blog/2007/08/assert_hpricot_1.html >