class

REXML::Formatters::Pretty

v1_9_2_180 - Show latest stable - Superclass: Default

Pretty-prints an XML document. This destroys whitespace in text nodes and will insert carriage returns and indentations.

TODO: Add an option to print attributes on new lines

Attributes

[RW]compact
[RW]width

Files

  • lib/rexml/formatters/pretty.rb