reformat with Hpricot?

P

Phlip

Rubies:

Here's how to indent with REXML:

doc = Document.new('<yo><dude /><yo>')
indent_spaces = 2
doc.write($stdout, indent_space)

That produces:

<yo>
<dude />
<yo>

How can Hpricot "pretty print" like that??
 
P

Philip Gatt

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,264
Messages
2,571,322
Members
48,005
Latest member
ChasityFan

Latest Threads

Top