Giter Site home page Giter Site logo

Comments (7)

evanplaice avatar evanplaice commented on July 29, 2024

From [email protected] on October 29, 2012 21:02:32

What's the big deal? Line endings are nothing but window dressing anyway... The code works fine without them and we're not fancy enough to use carriage returns here? /s

I'm kidding. It's probably jumbling the code for you because all of the development on jquery-csv happens in linux (which uses lf not crlf). I'm also using Notepad++ (via WINE) so it should be trivial to batch convert everything to crlf.

I'll let you know as soon as the source is ready.

Status: Accepted
Labels: -Priority-Medium Priority-Low

from jquery-csv.

evanplaice avatar evanplaice commented on July 29, 2024

From Thanpolas on October 30, 2012 11:19:21

Actually my issue is with git, not my ide...

I have my git configured so as to convert crlf to lf, which is the default setting on most unix based machines.

This causes each checkout, to have uncommitted changes by default.

Adding the ".gitattributes" file, fixes that.

However, yea it would be a good idea to convert all to LF

from jquery-csv.

evanplaice avatar evanplaice commented on July 29, 2024

From [email protected] on October 30, 2012 16:58:49

Go figure. I made the switch to Notepad++ on linux because I'm not a vim/emacs monkey and all the rest of the editors suck. As a result, half of the project files use CRLF, the other half use LF.

The project-wide convention is LF. I had to add an additional line-conversion commit to the repo but everything should be consistent now.

Quick question, you're saying the following setting sets all line endings to lf on commit?

Set default behaviour, in case users don't have core.autocrlf set.

  • text=crlf

from jquery-csv.

evanplaice avatar evanplaice commented on July 29, 2024

From Thanpolas on October 31, 2012 02:16:49

The .gitattributes file helps ignore the crlf issue.

If you want it to force normalization then it's better you see this article: http://git-scm.com/book/en/Customizing-Git-Git-Configuration#Formatting-and-Whitespace

from jquery-csv.

evanplaice avatar evanplaice commented on July 29, 2024

From [email protected] on October 31, 2012 22:54:03

OK, thanks for clarifying.

I'll add the .gitattributes to ensure that I don't accidentally add crlf to any documents I create in the future (as git should notify where any inconsistencies occur).

I'd like to say that this is an uncommon issue but it's not the first time I have encountered it. At least, now I have a workable solution.

Thank you for the feedback.

from jquery-csv.

evanplaice avatar evanplaice commented on July 29, 2024

From [email protected] on October 31, 2012 22:54:22

Status: Verified

from jquery-csv.

evanplaice avatar evanplaice commented on July 29, 2024

From [email protected] on November 04, 2012 15:03:07

Owner: [email protected]

from jquery-csv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.