class Nokogiri::XML::Text

Public Instance Methods

normalize() click to toggle source
# File lib/dor/utils/ng_tidy.rb, line 4
def normalize
  content =~ /\S/ ? content.gsub(/\s+/, ' ').strip : content
end
normalize!() click to toggle source
# File lib/dor/utils/ng_tidy.rb, line 8
def normalize!
  self.content = normalize
end