Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > REXML::Formatters::Pretty wrap width?

Reply
Thread Tools

REXML::Formatters::Pretty wrap width?

 
 
Charles Roper
Guest
Posts: n/a
 
      09-18-2009
Hey all,

So I am doing something like this:

out = REXML::Formatters:retty.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

Is there any way I can prevent this?

Cheers,
Charles




 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
To wrap or not to wrap? Aaron Fude Java 12 05-10-2008 06:33 PM
Wrap computer components in bubble wrap? Ickshka Computer Support 7 05-05-2006 05:54 PM
How to wrap line length of outgoing messages? Randy Firefox 3 07-14-2004 06:28 PM
Text::Wrap::wrap difference Art Werschulz Perl Misc 1 09-25-2003 06:15 PM
Text::Wrap::wrap difference Art Werschulz Perl Misc 0 09-22-2003 02:36 PM



Advertisments