Talk:End of Line

From Lazarus wiki
Jump to navigationJump to search

My strongly suggested best practice regarding keeping/converting line endings:

  • Saving a file should strictly keep the original line ending.
  • "Save as" should default to the line ending of the original, but offer a choice for the line ending directly in the save as dialog.
  • If your program converts automatically to the type of the current platform, you should roast in hell at lifetime.

Nice to have:

  • Prepare your program to be able to deal with files, which have a mixture of line endings.
    (Although they should also roast in hell since long ago, the combo of editors and users producing such files is actually out there.)
  • A status text indicating the present type of line ending can help a lot.

--Mischi 00:21, 17 August 2009 (CEST)