[EMAIL PROTECTED] wrote: > I'll try UltraEdit, thanks! > By the way, I just used Word to save it as us-ascii CLRF, and it works > when used with the built-in-server, but not when used with Apache & > mod_wsgi. > > Anyone knows why? > > On Mar 23, 7:01 pm, "Hermann Kaser" <[EMAIL PROTECTED]> wrote: >> I don't know about any of those, but try Ultraedit. As far as I know >> it'll let you do anything with a text file. >> >> >> >> On Sun, Mar 23, 2008 at 9: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? >>> On Mar 17, 10:57 pm, Flywood <[EMAIL PROTECTED]> wrote: >>> > Thank you all for the valuable comments. :) I had found the cause for >>> > this problem: I saved my template with UTF-8 format. it seems that the >>> > web.py doesn't decode it right and think there was other non-printed >>> > char before "$def with name". after I saved it with ansi format. the >>> > problem gone. >>> > so may I have the conclusion that the web.py doesn't support UTF-8/ >>> > Unicode well? >>> > On 3月16日, 下午1时23分, Juan Pablo Scaletti <[EMAIL PROTECTED]> >>> > wrote: >>> > > He is using "templetor" (web.py's template system) not cheetah. >>> > > The "could not find 'def' (line 1) " error appears when the template >>> > > has a space before the "$def with name". >> -- >> Hermann Käserhttp://theragingche.com/http://semicir.cl/user/hermzz
Of course: vim [1] :) Use the :set filetype=unix option. I don't know how much you know about vi(m) and how much programming you do, but in case you're still actually using notepad/ultraedit/etc; vim is definitely in the top-2 of programmers worldwide's favourite editors (along with emacs). You might want to give it a serious try (steep learning curve but, at least according to many, worth it). Or try emacs, that too, has many fans. Not trying to start an editor-war here, I was just a little worried that this poor devil was actually programming in notepad. Good luck, b^4 (PS: it's CRLF; "carriage return" and "line feed" ;)) [1] http://vim.sourceforge.net/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
