Just> Skip Montanaro wrote: >> Just re.sub("[\r\n]+", "\n", s) and I think you're good to go. Just> I don't think that in general you want to fold multiple empty Just> lines into one. Whoops. Yes. Skip