Sha256: fa1487d3140cdf515371769cbaa764acc9f6df971c36db12a5755146636e3499

Contents?: true

Size: 237 Bytes

Versions: 33

Compression:

Stored size: 237 Bytes

Contents

require 'rexml/document'
require 'rexml/formatters/default'

# strip whitespace when formatting XML

class StripFormatter < REXML::Formatters::Default

  protected

  def write_text(node, output)
    output << node.to_s.strip
  end

end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
dryml-2.0.0.pre6 features/support/strip_formatter.rb
dryml-2.0.0.pre5 features/support/strip_formatter.rb
dryml-2.0.0.pre4 features/support/strip_formatter.rb
dryml-2.0.0.pre3 features/support/strip_formatter.rb
dryml-2.0.0.pre2 features/support/strip_formatter.rb
dryml-2.0.0.pre1 features/support/strip_formatter.rb
dryml-1.4.0.pre8 features/support/strip_formatter.rb
dryml-1.4.0.pre7 features/support/strip_formatter.rb
dryml-1.4.0.pre6 features/support/strip_formatter.rb
dryml-1.4.0.pre5 features/support/strip_formatter.rb
dryml-1.4.0.pre4 features/support/strip_formatter.rb
dryml-1.4.0.pre3 features/support/strip_formatter.rb
dryml-1.4.0.pre2 features/support/strip_formatter.rb