# REXML::Formatters::Pretty wrap width?

**URL:** <https://www.ruby-forum.com/t/rexml-pretty-wrap-width/175719>\
**Category:** Ruby\
**Created:** [September 18, 2009, 10:51am UTC](https://www.ruby-forum.com/t/rexml-pretty-wrap-width/175719 "2009-09-18T10:51:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![scrajesh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/46a35a/32.png) [@scrajesh](https://www.ruby-forum.com/u/scrajesh)\
**Post date:** [September 18, 2009, 10:51am UTC](https://www.ruby-forum.com/t/rexml-pretty-wrap-width/175719/1 "2009-09-18T10:51:40Z")

</div>

Hey all,

So I am doing something like this:

out = REXML::Formatters::Pretty.new(4)  
out.width = 5000 # arbitrarily large value  
out.compact = true  
puts out.write(tmtheme.root,“”)

Yet long lines are getting broken still. For example:

[http://pastie.org/621471](http://pastie.org/621471)

Is there any way I can prevent this?

Cheers,  
Charles
