From: Dimitri Geshef Date: 2012-01-13T22:42:06+09:00 Subject: [ruby-core:42112] [ruby-trunk - Bug #5892][Open] REXML always wraps long tag text regardless the page width setting. Issue #5892 has been reported by Dimitri Geshef. ---------------------------------------- Bug #5892: REXML always wraps long tag text regardless the page width setting. https://bugs.ruby-lang.org/issues/5892 Author: Dimitri Geshef Status: Open Priority: Normal Assignee: Category: lib Target version: 1.9.2 ruby -v: ruby 1.9.2p180 (2011-02-18) [i386-mingw32] When ones prints a REXML document that contains a tag with a long text (with space chars), the REXML::Formatters::Pretty formatter will force a line wrapping at column 80. If one changes the value of the width attribute of the formatter to a very large value does not change the result. In other words, the formatter ignores the value of the 'width' attribute. The REXML version used is: REXML VERSION = "3.1.7.3" REXML REVISION = 26193 Apparently, the defect lies in the method REXML::Formatters::Pretty#write_text. There is a statement with a hardcoded value of 80. Look in the .rb file in attachment for a possible fix of this bug. -- http://bugs.ruby-lang.org/