Author Topic: Issue with Setting Document->CRLF Style to Force Unix line terminators  (Read 195 times)

Offline RickF

  • Newbie
  • *
  • Posts: 24
  • Karma: +0/-0
    • View Profile
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 ??

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1712
  • Karma: +29/-2
    • View Profile
    • HippoEDIT
Re: Issue with Setting Document->CRLF Style to Force Unix line terminators
« Reply #1 on: August 26, 2011, 01:34:49 pm »
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

Offline RickF

  • Newbie
  • *
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Re: Issue with Setting Document->CRLF Style to Force Unix line terminators
« Reply #2 on: August 27, 2011, 01:57:44 am »
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!

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
590 Views
Last post December 11, 2008, 12:01:06 pm
by alex
4 Replies
563 Views
Last post February 15, 2009, 04:36:26 pm
by alex
2 Replies
322 Views
Last post November 19, 2010, 03:53:45 pm
by scunliffe
1 Replies
336 Views
Last post November 24, 2010, 12:55:31 am
by alex
3 Replies
61 Views
Last post April 24, 2012, 06:53:43 pm
by alex