Class: REXML::Formatters::Conservative
- Defined in:
- lib/kramdown-rfc/rexml-formatters-conservative.rb
Overview
The Conservative formatter writes an XML document that parses to an identical document as the source document. This means that no extra whitespace nodes are inserted, and whitespace within text nodes is preserved. Attributes are not sorted.
Instance Method Summary collapse
-
#initialize ⇒ Conservative
constructor
A new instance of Conservative.
Constructor Details
#initialize ⇒ Conservative
Returns a new instance of Conservative.
10 11 12 13 14 |
# File 'lib/kramdown-rfc/rexml-formatters-conservative.rb', line 10 def initialize @indentation = 0 @level = 0 @ie_hack = false end |