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: Justin Patrin
Subject: Re: [Monotone-devel] line endings as project policy
Date: Fri, 24 Nov 2006 15:24:16 -0800

On 11/23/06, Daniel Lakeland <address@hidden> wrote:
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
"""


PHP has the same thing, but if I require a certain type of newline I
always use escaped chars (\r \n) as you never know what editors/RCS
are going to do to your newlines.

--
Justin Patrin




reply via email to

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