Re: [Pydev-code] Line terminators in Pydev files + line numbers
Brought to you by:
fabioz
|
From: Fabio Z. <fa...@gm...> - 2006-05-09 12:35:54
|
Hi Don,
On 5/8/06, Don Taylor <nos...@gm...> wrote:
>
> Fabio:
>
> Do you do something about making sure that only one type of line
> terminator (cr|lf|cr-lf) is used in a Python file in Eclipse?
Actually,
I notice that Eclipse seems to let you have differing line terminators
> in the same file, but that PySelection seems enforce one and only one
> type of line terminator as per Guido's directions. (I hope this is what
> you do).
Actually, sort of... In PySelection, when the terminator is requested it
will always return the same line terminator from the first line of the
document.
While I have your attention, is there any significance in PySelection's
> line numbering starting at 0 while the line number displayed by Eclipse
> starts at 1 ?
Actually, where is this? I've checked:
PySelection sel =3D new PySelection(new Document("foo\nbla"));
assertEquals(0, sel.getLineOfOffset(1));
So, it is returning 0 in the PySelection for the offset 1... Do you have an
example where this is not the case?
-- Fabio
|