Re: [Rails] Re: Prettifying Builder::XmlMarkup.new
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 <allan.cochrane@gmail.com> 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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home