Today seems to be the day for line-ending problems.  Rev 2872 of the
trunk fixes a major bug in Leo's write logic that has the potential to
affect @auto nodes.

The bug caused Leo not to update @auto nodes if the differences
between the old and file was limited to '\n' and '\r' characters.  But
this is wrong: it ignores adding or deleting blank lines!

Instead, we have to treat all line endings as equivalent without
ignoring blank lines.  This is harder than it looks.  As a quick fix,
the new code simply ignores '\r' characters.  It appears to work on
both Ubuntu and Windows 7 and all unit tests pass on those platforms,
but I have a bad feeling about MacOs.

Anyway, please be on the lookout for strange @auto behavior and report
anything suspicious immediately.  Thanks.

Edward

P.S. This bug could easily have caused confusion about line numbers.
Indeed, I discovered it while working on bug 363406: goto global line
doesn't seem to be working in @auto files.  Fixing that bug completely
is next on the list.

EKR

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to