Sha256: 0d8df0dacd17e51c9e1078a85b7843b0b0f1335579503216989fd88dfd537c62

Contents?: true

Size: 369 Bytes

Versions: 14

Compression:

Stored size: 369 Bytes

Contents

require 'rexml/formatters/pretty'

class REXML::Formatters::Pretty
    def wrap(string, width)
        return string if string.length <= width
        ret = ""
        while place = string.rindex(' ', width)
            string[place]="\n"
            ret += string[0,place]
            string = string[place+1..-1]
        end
        return ret + string
    end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
taskjuggler-0.2.1 tasks/rexml_fix.rb
taskjuggler-0.2.0 tasks/rexml_fix.rb
taskjuggler-0.1.1 tasks/rexml_fix.rb
taskjuggler-0.1.0 tasks/rexml_fix.rb
taskjuggler-0.0.11 tasks/rexml_fix.rb
taskjuggler-0.0.10 tasks/rexml_fix.rb
taskjuggler-0.0.9 tasks/rexml_fix.rb
taskjuggler-0.0.8 tasks/rexml_fix.rb
taskjuggler-0.0.7 tasks/rexml_fix.rb
taskjuggler-0.0.6 tasks/rexml_fix.rb
taskjuggler-0.0.5 tasks/rexml_fix.rb
taskjuggler-0.0.4 tasks/rexml_fix.rb
taskjuggler-0.0.3 tasks/rexml_fix.rb
taskjuggler-0.0.2 tasks/rexml_fix.rb