Michael Barton wrote:

> I wanted to see how it would be to port one of the bash scripts to  
> Python. I followed the WIKI template and it didn't run. So I made a  
> script that is ONLY from the WIKI template and it doesn't run either.  

And the URL is ...?

> I've found the answer to the question below, but I'm not sure that I  
> understand. I've used the same editor for all my Python coding for  
> awhile now. It is nice and clean, keeping to indentation standards,  
> etc. I turned on invisible characters and there is a linefeed after  
> every line.
> 
> However, if I pass the script through another editor and save it, I  
> don't get this error about a missing line feed.
> 
> I'm not sure what is going on. I got the missing linefeed error when I  
> dropped the WIKI code directly into the editor and saved it.

It looks like the text is being pasted with CRLF terminators, and the
editor (or maybe Python itself) is treating both CR and LF as
individual terminators.

-- 
Glynn Clements <[EMAIL PROTECTED]>
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to