Sha256: a76aa52dbf942c8d710d08f85d2c1f10e1589167c824eb2439362db785641c12
Contents?: true
Size: 451 Bytes
Versions: 1
Compression:
Stored size: 451 Bytes
Contents
# EDLs sometimes come with \r line breaks, and this is something that fails # with Ruby standard line separator detection. We need something to help us # with that. In this case we can just do a bulk replace because EDLs will be relatively # small for even very long features. class EDL::LinebreakMagician < StringIO LOOSE_CR = /#{Regexp.escape("\r")}/ def initialize(with_io) blob = with_io.read super(blob.gsub(LOOSE_CR, "\n")) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
edl-0.1.5 | lib/edl/linebreak_magician.rb |