lib/gyoku/prettifier.rb
def prettify(xml)
      result = ''
      formatter = REXML::Formatters::Pretty.new indent
      formatter.compact = compact
      doc = REXML::Document.new xml
      formatter.write doc, result
      result
    end
def prettify(xml)
      result = ''
      formatter = REXML::Formatters::Pretty.new indent
      formatter.compact = compact
      doc = REXML::Document.new xml
      formatter.write doc, result
      result
    end
def prettify ( xml ) result = '' formatter = REXML :: Formatters :: Pretty . new indent formatter . compact = compact doc = REXML :: Document . new xml formatter . write doc , result result end
Adds intendations and newlines to +xml+ to make it more readable
Adds intendations and newlines to + xml + to make it more readable