Skip to content
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

Made brace_style option more inclusive #1277

Merged
merged 5 commits into from Oct 19, 2017
Merged

Conversation

Cobertos
Copy link
Contributor

Per the discussion of #1058, the brace_style option has been made more inclusive. Also 3 shell tests have been added.

  • Accepts expand,collapse,preserve-inline as collapse,preserve-inline
  • Accepts preserve-inline as collapse,preserve-inline (uses the default brace_style collapse+ user specified preserve-inline)
  • Accepts preserve-inline,collapse as preserve-inline
  • Rejects invalid,preserve-line,collapse as invalid

Whereas in the previous version these would all reject as invalid.

Peter "Coburn" Fornari added 4 commits October 17, 2017 19:23
* Per specifications at end of beautifier#1058, takes multiple parameters using the last one
* Still rejects invalid parameters and rewrites compatible ones
@Cobertos
Copy link
Contributor Author

This also adds an invalidHandler to nopt in the javascript cli.js which apparently wasn't there before? So invalid parameter wouldn't throw and now they do

@bitwiseman bitwiseman added this to the v1.7.x milestone Oct 19, 2017
@bitwiseman bitwiseman merged commit 873da98 into beautifier:master Oct 19, 2017
@bitwiseman bitwiseman modified the milestones: v1.7.x, v1.7.5 Dec 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants