Home Download Buy Blog Forum Support

Sublime Text 2 - Blank lines being added

Sublime Text 2 - Blank lines being added

Postby mr_pablo on Wed Oct 26, 2011 9:21 am

I am experiencing an annoying bug with Sublime 2 (Windows 7).

When ever I open a .php file (or any text based file for that matter) that has previously been worked on by my co-worker (also using Sublime 2, but on OSX), blank lines have been inserted after each line of text.

Has anyone else encountered this?

Really need this sorting, Sublime is a lovely piece of kit, but this is starting to become a deal-breaker :(
mr_pablo
 
Posts: 2
Joined: Wed Oct 26, 2011 9:16 am

Re: Sublime Text 2 - Blank lines being added

Postby iamntz on Wed Oct 26, 2011 9:49 am

probably the line ending are different.
Try to File Settings - User and add this on both machines:
Code: Select all
"default_line_ending": "LF"


Btw, this may also screw up your version control for few commits.
iamntz
 
Posts: 917
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Re: Sublime Text 2 - Blank lines being added

Postby mr_pablo on Wed Oct 26, 2011 10:05 am

Have made those changes, fingers crossed it'll work :)

Thanks!!
mr_pablo
 
Posts: 2
Joined: Wed Oct 26, 2011 9:16 am


Return to Technical Support

Who is online

Users browsing this forum: Yahoo [Bot] and 23 guests