From: Danilo Nascimento Date: 2010-03-10T07:06:50+09:00 Subject: [ruby-core:28588] Simple rexml formatter patch write_text function in Pretty class doesn't use the width variable --- lib/rexml/formatters/pretty.rb (revision 26861) +++ lib/rexml/formatters/pretty.rb (working copy) @@ -88,7 +88,7 @@ s = node.to_s() s.gsub!(/\s/,' ') s.squeeze!(" ") - s = wrap(s, 80-@level) + s = wrap(s, @width-@level) s = indent_text(s, @level, " ", true) output << (' '*@level + s) end IRB Session http://pastebin.com/YWqz7EnL -------------------------------------------------------------------------------------------------------- IMO, REXML::Document.write should also have an option to set the compact format output []'s Danilo Nascimento