From: Alan Munn Date: 2009-09-14T04:15:07+09:00 Subject: Re: normalizing newlines In article <31a130740909131121v153e67e7t899884fb9e62a95c@mail.gmail.com>, Xavier Noria wrote: > On Sun, Sep 13, 2009 at 8:10 PM, Alan Munn wrote: > > > I have a script that processes text from the clipboard. Depending on the > > application the text is copied from, (even on the same platform) lines > > sometimes end in lf, cr, or possibly cr/lf.  What's the best way of > > normalizing the lines so that my script will work independent of the > > actual newlines chosen? > > The script is line oriented or has the entire text slurped? I'm not sure I know exactly what you mean. The script takes copied cells in csv format and massages them into different LaTeX table styles for insertion into a LaTeX document. I first split the lines and then use csv methods to do the rest. Alan