[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: tortoisemerge doesn't show last empty line

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Wed, 11 Mar 2009 17:51:25 +0100

Paul van der Hulst wrote:
>> TortoiseMerge is not a text editor, so to add a new line you have
>> to press enter first to create a new line.
>>
>> Lines in TortoiseMerge are treated as text with a line ending
>> (CR/LF). If there is no text and no line ending, then the line does
>> not really exist: text editors can show the cursor there because of
>> the CR/LF after the previous line, but that line doesn't really
>> exist.
>>
> The reason I posted this as a bug is that C requires a line ending
> after the last closing brace. Since most source editors are simple
> text editors line notepad, they don't force this behaviour. In the
> current situation tortoisemerge does not show an empty (numbered)
> line after the return, and thus I might think there's a bug in my
> source code if the line below the last closing '}' isn't numbered.
>
> By the way, text without line endings are also treated as lines by
> tortoisemerge: if I delete the last return after '}', tortoisemerge
> still shows a line with '}'.

That's what I said, isn't it?
A line is a line, whether it has a line ending or not.
But: an empty line with no line ending is non-existant (no line chars,
no line endings - there simply is *nothing* there).

Stefan

-- 
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=1308608
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].

Received on 2009-03-11 17:52:04 CET

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.