Comments (7)
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.
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.
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.
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.
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.
From [email protected] on October 31, 2012 22:54:22
Status: Verified
from jquery-csv.
From [email protected] on November 04, 2012 15:03:07
Owner: [email protected]
from jquery-csv.
Related Issues (20)
- How to trim columns with empty headers HOT 1
- spec(Add Missing Tests) HOT 1
- spec(Create New Demo Template and Migrate the Existing Examples to it) HOT 1
- Link to basic usage demonstration is broken HOT 2
- The Post-1.0 Future HOT 9
- Update CDNJS? HOT 4
- v1.0.1+ triggers NPM install EISGIT error HOT 3
- Fix security vulnerability HOT 1
- As simple standard CSV-reader what is better? HOT 1
- isFileAPIAvailable is not defined HOT 2
- Add jquery.csv.min.js not recognized by minify HOT 6
- multiple problems with newlines in cells HOT 1
- broken example for file handling HOT 4
- Tab as delimiter breaks parsing HOT 1
- csv.replace HOT 1
- toArrays() of single field file appears to omit the final row HOT 3
- Documentation error HOT 2
- Conversion error in .toObjects()
- $ is not defined HOT 1
- toObject Basic Usage Sample Error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery-csv.