Issue with Setting Document->CRLF Style to Force Unix line terminators

Started by RickF, August 26, 2011, 01:28:19 AM

Previous topic - Next topic

RickF

Alex..

I just noticed this.. I was using VIM to look at some code quickly (in Solaris) and found some of the files I had edited are ending with DOS line terminators.  I had to look at the settings in the Document pane for CRLF line stlye which I had set to "Unix Style".  However, I'm guessing HE does not appear to change the line style from what I can tell if the file already has DOS line style.  I may have initially edited this file with another DOS/Windows based text editor which put the bad line endings in place and HE just kept them there.. I'd assume that if I told it to make them Unix style it would change them to suit my request.. Is this the desired behavior or ??

alex

Hi Rick,

yes, this is designed behavior. HE would not change something, without your explicit request. It can produce more harm, than benefits. Even if you edit the file, HE will keep original line endings for old lines after saving (even if document has mixed line endings). Line endings for new lines will be determinated with help of heuristic based on current document.

Settings in Document properties (or Project Properties) applied only on new documents.

But you can always see current line ending style in HE status bar and cal also change it there. Than it will be undo-able action and document will be saved with new style.

BR, Alex
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

RickF

Cool.. to be completely honest I've never closely looked at the status bar -- I now see lots of nifty stuff there (like my dad used to say).. Thx!