method
write_text
write_text( node, output )
protected
Hide source
# File lib/rexml/formatters/pretty.rb, line 88 def write_text( node, output ) s = node.to_s() s.gsub!(/\s/,' ') s.squeeze!(" ") s = wrap(s, @width - @level) s = indent_text(s, @level, " ", true) output << (' '*@level + s) end