From: Yui NARUSE Date: 2012-01-15T10:38:40+09:00 Subject: [ruby-core:42132] [ruby-trunk - Bug #5892][Assigned] REXML always wraps long tag text regardless the page width setting. Issue #5892 has been updated by Yui NARUSE. Status changed from Open to Assigned Assignee set to Kouhei Sutou ---------------------------------------- Bug #5892: REXML always wraps long tag text regardless the page width setting. https://bugs.ruby-lang.org/issues/5892 Author: Dimitri Geshef Status: Assigned Priority: Normal Assignee: Kouhei Sutou 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/