-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
yield statements are being beautified to their own newlines since 1.5.2 #560
Comments
+1. Can confirm when using the following Sublime Text 3 plugin: https://github.com/victorporof/Sublime-HTMLPrettify |
+1 |
2 similar comments
+1 |
+1 |
+1 @jdc0589 when can this |
Any news on this? |
I've been busy with the job that pays me... |
Haha. I got you man. I'll get you a pull request. |
I want to see an Extension for Brackets |
👍 |
Any Update ... I tried to remove https://github.com/beautify-web/js-beautify/blob/master/js/lib/beautify.js#L1429 test.js function test * (arg1) {
var text = yield getText();
} should I get PR for this small modification ? |
@magicdawn: #458 explains why We can't keep going back and forth on these two bugs; a proper solution is needed. |
@jemartti - we're not going back and forth. That bug got closed and has stayed closed, this is a follow on bug.
|
@bitwiseman: I know, I'm the one that opened this issue and pointed out that it's a follow–on bug from #458 :). My comment was referring to @magicdawn's suggestion not being sufficient, as it would result in reopening the previous bug. |
Ah. 😄 Got it. |
Version @1.5.2 included 820d267 to resolve #458. However, this fix introduced some unintended behaviour for beautifying code that includes
yield
statements; specifically, it's forcing everyyield
statement to start on a new line.For example:
is being beautified to:
when it should be remaining unchanged.
Since we're building a koa app, we're stuck with pinning to version @1.5.1 as this is causing some widespread annoyances in our codebase.
The text was updated successfully, but these errors were encountered: