Can't start new lines with love.filesystem?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

Re: Can't start new lines with love.filesystem?

Post by BlackBulletIV »

Lol. Stay away from Notepad, that can get you into a lot of confusion.
User avatar
Jasoco
Inner party member
Posts: 3726
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Can't start new lines with love.filesystem?

Post by Jasoco »

Yeah, I noticed that \n works fine on OS X. I never thought to look at any of my output files on Windows. But I'm betting they're all on one line as well in certain *cough* Notepad *cough* text editors.
User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

Re: Can't start new lines with love.filesystem?

Post by BlackBulletIV »

Jasoco wrote:Yeah, I noticed that \n works fine on OS X. I never thought to look at any of my output files on Windows. But I'm betting they're all on one line as well in certain *cough* Notepad *cough* text editors.
Almost all editors work with \n. It's the annoying Notepad that doesn't (maybe a few others?). Really, the text is actually "all on one line" anyway. It depends on the editor as to what it uses to distinguish new lines.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Can't start new lines with love.filesystem?

Post by Robin »

Jasoco wrote:Yeah, I noticed that \n works fine on OS X.
That's because OS X is Unix. Classic Mac OS used \r, though.
Help us help you: attach a .love.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 3 guests