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

New option: block-indent (#92) #182

Merged
merged 0 commits into from
Feb 27, 2014
Merged

New option: block-indent (#92) #182

merged 0 commits into from
Feb 27, 2014

Conversation

tonyganch
Copy link
Member

Note: All pull requests will stay open for a week so everyone has some time to review and leave comments.

Set indent for code inside blocks, including media queries and nested rules (see #92).
This should also fix #163.

Example: { 'block-indent': 4 }

// Before:
a {
top: 0;
  p {
      color: tomato;
position: happy;
 }
}

// After:
a {
    top: 0;
    p {
        color: tomato;
        position: happy;
        }
    }

nani-17

@tonyganch tonyganch added the purr label Feb 21, 2014
@tonyganch tonyganch added this to the 3.0.0 milestone Feb 21, 2014
@tonyganch tonyganch merged commit 1fd9485 into dev Feb 27, 2014
@tonyganch tonyganch deleted the tg/92-block-indent branch February 27, 2014 22:02
@tonyganch
Copy link
Member Author

@chrisdhanaraj, have you deleted your comment?

To make this work you can use both block-indent and space-before-closing-brace.
For example: { 'block-indent': 4, 'space-before-closing-brace': '\n' }

// Before:
a {
top: 0;
  p {
      color: tomato;
position: happy;
 }
}

// After:
a {
    top: 0;
    p {
        color: tomato;
        position: happy;
    }
}

@chrisdhanaraj
Copy link

Hah yes, sorry! I realised that space-before-closing-brace option right after I posted my comment, I probably should've just edited it instead.

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

Successfully merging this pull request may close these issues.

Incorrect left indent for nested close brace (scss)
2 participants