Comments (9)
Unfortunately we just facing the same problem here.
from grunt-jsbeautifier.
I have pushed a fix in version 0.2.9, see #45 & #46 Let me know if this does fix for you.
from grunt-jsbeautifier.
Unfortunately this didn't fix it.
If you have an formatted js file with UNIX line endings (LF) and run the jsbeautifier task everything is fine. But if you change the line endings to Windows (CR LF) und run the task again, it will change the line endings back to LF.
This causes uncommited changes in GIT, but GIT will ignore the changes if you try to stage them. IntelliJ on Windows also has problems with that and shows all "beautified" files as changed.
Do you know what causes the line endings change?
Thx for your help.
from grunt-jsbeautifier.
Having the same issue on Windows, our git is setup to checkout with Windows line endings and commit back with Unix line endings. All the files come up as changed on git even when no changes are made. This is preventing us from using this as a part of our workflow, Maybe we should log this in https://github.com/beautify-web/js-beautify ?
from grunt-jsbeautifier.
There is a bug open in beautifier/js-beautify#260
I am also doing new line check in this plugin but its only for back compatibility. This check in plugin was added when new line support from js-beautify was limited.
from grunt-jsbeautifier.
+1 - facing the same issue with git... we can't use the plugin as is. It doesn't look like there is any traction on the referenced open js-beautify issue from almost a year and a half ago.
from grunt-jsbeautifier.
beautifier/js-beautify#260 ... Fixed.
from grunt-jsbeautifier.
@everyone,
First of all apologies for not following up on this. But looks like js-beautify bug is fixed. Will you please check and confirm if that fixed the issue for you as well. If it does then report here so I can close the ticket.
Thanks a lot in advance.
from grunt-jsbeautifier.
Not heard for long back, hope issue is fixed so closing ticket. If this issue still persist, please open new bug.
from grunt-jsbeautifier.
Related Issues (20)
- Ignoring embedded script tags (html) HOT 3
- run jsBeautifier on single file HOT 6
- Update js-beautify HOT 1
- Breaks on formatting mixins HOT 2
- Update to latest version of jsbeautify HOT 1
- JS: End with newline HOT 2
- bracestyle expand causing odd formatting with JSON objects HOT 1
- use jsbeautifier format the string which concatenation with "\" have one bug? HOT 1
- option.dest output folder too
- js-beautify version HOT 1
- Hangs on missing HTML files HOT 2
- Config file HOT 4
- JsBeautifier silently finish all grunt task when no source HOT 2
- Grunt 1.0.x support HOT 6
- Option "eol" not working HOT 1
- Only modify file when it is not well-formatted HOT 2
- Improve documentation HOT 2
- bug(config): grunt-jsbeautifier doesn't support .jsbeautifyrc HOT 1
- bug(options): wrapLineLength: 0 not by default HOT 1
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 grunt-jsbeautifier.