monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] line endings as project policy


From: Daniel Lakeland
Subject: Re: [Monotone-devel] line endings as project policy
Date: Thu, 23 Nov 2006 12:11:06 -0800
User-agent: Mutt/1.5.9i

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
"""



-- 
Daniel Lakeland
address@hidden
http://www.street-artists.org/~dlakelan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]