5

How to make sure that a source file is in UNIX mode?

In other words, how to check that every line in a text file is ended by LF rather then CR+LF? I am asking because a package intended for uploading to CTAN should be saved in UNIX mode. Earlier, it was possible to emulate UNIX mode in WinEdt, but after upgrading to WinEdt 7 I don't see UNIX in a list of WinEdt's submodes.

P.S. I am using Windows 7.

2 Answers2

3

Nothing has changed in WinEdt 7. Simply add :UNIX at the end of your document's mode in Document Settings dialog (accessible via the Document menu) and press OK. Your document's EOL will be changed to LF.

karlkoeller
  • 124,410
1

This Answer won't help using windows, however: The line breaker problem for users of Mac OSX can be solved by the linebreak application. http://code.google.com/p/linebreak/ Works via drag and drop, takes presets or asks what todo. Transfers Mac, Unix, and Windows/DOS formats in all directions. Can preserve original file.

nonsense
  • 489