REXML::Formatters::Pretty wrap width?

Discussion in 'Ruby' started by Charles Roper, Sep 18, 2009.

  1. 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

    Is there any way I can prevent this?

    Cheers,
    Charles
     
    Charles Roper, Sep 18, 2009
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. AndrewF
    Replies:
    1
    Views:
    1,055
    Bruce Barker
    Oct 10, 2005
  2. Fredrik Tolf
    Replies:
    8
    Views:
    467
    John Machin
    Dec 1, 2006
  3. Aaron Fude

    To wrap or not to wrap?

    Aaron Fude, May 8, 2008, in forum: Java
    Replies:
    12
    Views:
    1,049
    Chronic Philharmonic
    May 10, 2008
  4. Damphyr
    Replies:
    2
    Views:
    334
    Damphyr
    Jul 16, 2003
  5. Phlip
    Replies:
    0
    Views:
    283
    Phlip
    Jan 15, 2008
  6. Une Bévue
    Replies:
    3
    Views:
    280
    Une Bévue
    Apr 25, 2010
  7. Art Werschulz

    Text::Wrap::wrap difference

    Art Werschulz, Sep 22, 2003, in forum: Perl Misc
    Replies:
    0
    Views:
    464
    Art Werschulz
    Sep 22, 2003
  8. Art Werschulz

    Text::Wrap::wrap difference

    Art Werschulz, Sep 24, 2003, in forum: Perl Misc
    Replies:
    1
    Views:
    454
    Anno Siegel
    Sep 25, 2003
Loading...