Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Inserting windows line endings' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Inserting windows line endings
Authored by: jonbauman on Oct 23, '03 02:39:33PM
What would be the key combo if you wanted DOS line feeds?

UNIX ends lines with a newline (aka linefeed, aka '\n') character (ASCII 10). Classic Mac OS uses a carriage return aka ('\r') character (ASCII 13). Windows uses a carriage return followed by a newline. So to get this, you would type ctrl-q ctrl-m ctrl-q ctrl-j

Also, a quick way I discovered to convert between the different formats (there's probably a quicker one via the terminal) is to open the file in ProjectBuilder. Under the "Formats → Line Endings" menu, you can choose whatever you want and resave.

For more information about the ascii table, check out /usr/share/misc/ascii

---

jon

[ Reply to This | # ]