I’m writing a script to convert text into a csv file to import into MS
Excel
(under Windows), and Excel allows multiline text within a cell, but the
newlines (\x0D\x0A) have to be replaced with only a \x0A for Excel to
put
everything into one cell.
The problem is that in Ruby, if I do:
newfield = field.gsub ( "\x0D" , "" )
it doesn’t do anything because Ruby treats \x0D\x0A as a unit.
Is there any way around this?
Mike S.