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

LESS formatting - mixins with multiple variables #1018

Closed
retan opened this issue Sep 4, 2016 · 1 comment
Closed

LESS formatting - mixins with multiple variables #1018

retan opened this issue Sep 4, 2016 · 1 comment

Comments

@retan
Copy link

retan commented Sep 4, 2016

Description

LESS files are not aligned properly if a mixin has multiple semicolon separated parameters. Semicolons (as opposed to commas, which can be use for this purpose as well) are the preferred for separating parameters. See: http://lesscss.org/features/#mixins-parametric-feature-mixins-with-multiple-parameters

Input

.mymixin(@color: #ccc; @border-width: 1px)  {
    border: @border-width solid @color;
}

Expected Output

The beautified code should look the same as the input above.

Actual Output

.mymixin(@color: #ccc;
@border-width: 1px) {
    border: @border-width solid @color;
}

Environment

Windows 10

Related

Previously reported in: brackets-beautify/brackets-beautify#222

@bitwiseman bitwiseman added this to the v1.6.5 milestone Sep 5, 2016
@bitwiseman bitwiseman modified the milestones: v1.7.x, v1.6.5 Dec 22, 2016
@anyclub
Copy link

anyclub commented Jul 26, 2017

i have the same question

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants