Class: REXML::Formatters::Conservative

Inherits:
Default
  • Object
show all
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

Constructor Details

#initializeConservative

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