If you happen to have Cygwin available (you didn't mention that you did), the command-line tool dos2unix will do the trick. (Sometimes it's called d2u.) Or, if you're pushing your files around by FTP, look at your FTP program's options for converting/preserving line endings.
Some Unix-oriented programs assume Unix-style line endings and choke on <CR><LF>, while others will attempt conversions or just ignore the <CR> as meaningless whitespace and keep going. I don't know how Apache + mod_wsgi prefers it, but that could be the source of what you're seeing. As long as you're investigating newbie-friendly editors, DrPython (http://drpython.sourceforge.net/) is a good bet, too. Looks like it will also allow you to convert line endings. On Mar 23, 2:59 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > This problem is getting on my nerves... > I can't find a way to save my templates in unix format with the text > editors I have installed (notepad, wordpad, word, idle). > Is there any way, if not with an editor at least programmatically, to > save a file as unix-style CLRF? > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/webpy?hl=en -~----------~----~----~----~------~----~------~--~---
