Thanks. That's where I started. That does two things: it indents the
markup just like I want, but it does a second thing, too. It leaves
all the white space that exists in the xml.builder file also, so that
the resultant XML document is really ugly and contains extra newlines
and extra spaces.

On Thu, Jun 16, 2011 at 4:53 PM, Allan <[email protected]> wrote:
> Try xml = Builder::XmlMarkup.new(:indent=>2)
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to