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

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:
    787
    Bruce Barker
    Oct 10, 2005
  2. Fredrik Tolf
    Replies:
    8
    Views:
    365
    John Machin
    Dec 1, 2006
  3. Damphyr
    Replies:
    2
    Views:
    142
    Damphyr
    Jul 16, 2003
  4. Phlip
    Replies:
    0
    Views:
    143
    Phlip
    Jan 15, 2008
  5. Une Bévue
    Replies:
    3
    Views:
    197
    Une Bévue
    Apr 25, 2010
Loading...

Share This Page