On Wed, Nov 22, 2006 at 10:40:58AM +0100, Richard Levitte - VMS Whacker wrote:
> - We need to convert line endings to the local standard on anything
> that's assumed to be text on checkout. This I regard as a fact.
> (see the problem that some Unixly programs have with embedded \r)
Consider languages like Python that have the ability to create
multiline strings, now the \r or \n characters are part of the
string. Converting them changes the behavior and meaning of the
program. This is very tricky.
Example:
mystring = """This string
Has several
New line characters
embedded in it
suppose the contents were executable code
embedded in this string
can we safely convert the newlines?
No
"""