I’m writing a script to convert text into a csv file to import into MS
(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
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?