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

Newline rule not working with css-like files #1776

Closed
N247S opened this issue Mar 27, 2020 · 0 comments · Fixed by #1796
Closed

Newline rule not working with css-like files #1776

N247S opened this issue Mar 27, 2020 · 0 comments · Fixed by #1796

Comments

@N247S
Copy link

N247S commented Mar 27, 2020

Description

I tried several VSC plugins which handles css formatting (amongst other file types). for bug reports for those I got redirected to the underalying library (which is this project). The basic problem is that I want to have the curly openingbrackets on a new line (after the selector list). But whatever I try, it does not work.

I found an online beautifier, where it didn't work either:

Input

The code looked like this before beautification:

.selector1, .selector2, .selector3 {
	// rules
}

Expected Output

The code should have looked like this after beautification:

.selector1,
.selector2,
.selector3
{
	// rules
}

Actual Output

The code actually looked like this after beautification:

.selector1,
.selector2,
.selector3 {
	// rules
}

Settings

{
  "indent_size": "1",
  "indent_char": "\t",
  "max_preserve_newlines": "5",
  "preserve_newlines": true,
  "keep_array_indentation": true,
  "break_chained_methods": false,
  "indent_scripts": "normal",
  "brace_style": "expand",
  "space_before_conditional": true,
  "unescape_strings": true,
  "jslint_happy": false,
  "end_with_newline": false,
  "wrap_line_length": "0",
  "indent_inner_html": true,
  "comma_first": false,
  "e4x": true,
  "indent_empty_lines": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants