[solved] Format EOL

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
rinrin
Veteran
Posts: 211
Joined: Thu Apr 16, 2009 9:18 am
Completed: Several.
Projects: Several.
Contact:

[solved] Format EOL

#1 Post by rinrin » Sat Mar 16, 2013 8:11 am

I've been seeing this error message a lot lately:
format-eol.jpg
format-eol.jpg (14.8 KiB) Viewed 919 times
This happens when I open the script files, so I suspect it's connected to Editra, not Ren'Py itself.

Any ideas what could be causing this and how to fix it?
Last edited by rinrin on Sat Mar 16, 2013 10:46 am, edited 1 time in total.

User avatar
AxemRed
Veteran
Posts: 482
Joined: Sun Jan 09, 2011 7:10 am
Contact:

Re: Format EOL

#2 Post by AxemRed » Sat Mar 16, 2013 9:08 am

By historical accident, there's no agreement for how line breaks (EOL) should be encoded in text files. The warning is because your files use a mix between the Unix standard "\n" and the DOS/Windows-preferred "\r\n". Most programs can handle both, some Windows programs (notepad) don't work properly with "\n" linebreaks.

My guess would be you're editing the file in multiple text editors and they're not all configured to use the same type of line break.

User avatar
rinrin
Veteran
Posts: 211
Joined: Thu Apr 16, 2009 9:18 am
Completed: Several.
Projects: Several.
Contact:

Re: Format EOL

#3 Post by rinrin » Sat Mar 16, 2013 9:15 am

Thank you for explaining that!
AxemRed wrote:My guess would be you're editing the file in multiple text editors and they're not all configured to use the same type of line break.
I don't actually remember opening this particular file in any other text editor, but I might have copy-pasted a few lines from another one?

In any case, should I just choose "Yes"?

User avatar
AxemRed
Veteran
Posts: 482
Joined: Sun Jan 09, 2011 7:10 am
Contact:

Re: Format EOL

#4 Post by AxemRed » Sat Mar 16, 2013 9:36 am

Copy-pasting could be the cause. You can press "yes" safely.

User avatar
rinrin
Veteran
Posts: 211
Joined: Thu Apr 16, 2009 9:18 am
Completed: Several.
Projects: Several.
Contact:

Re: Format EOL

#5 Post by rinrin » Sat Mar 16, 2013 10:46 am

Thank you!
Problem solved.

Post Reply

Who is online

Users browsing this forum: Bing [Bot]