![]() ![]() This way it hits me in the face, the current situation.Īnyway, I don’t know the file type (Windows/Linux, Mac really isn’t happening) in advance so I can’t do stuff based upon that. So I’ve created a script whereby if mixed line-endings occur in one area (between start_pos and end_pos, see script segment above) then I will, in code, turn visible line-endings ON. So I want to be “made aware” of the situation without having to do anything. Recently I’ve been manipulating some data where I can get mixed line-endings in a file (initially). Well, I didn’t really explain my goal, did I? ![]() So, given a file, if you just want to grab all the inconsistent “End of Lines” AND that you expect your file to be :Ī Windows file, use the regex \r(?!\n)|(? EOL Conversion option ? Whatever the number of EOL’s mixing in your current file, choose, firstly, any non-grayed option and secondly, choose your desired EOL => all the inconsistent EOL should have been changed into the expected type -)) Really, Alan, I think you’re making it difficult for yourself !!
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |