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

CSS and JS Indent_Level = 0 Still Autodetects Base Indent #1526

Open
MacKLess opened this issue Sep 1, 2018 · 1 comment
Open

CSS and JS Indent_Level = 0 Still Autodetects Base Indent #1526

MacKLess opened this issue Sep 1, 2018 · 1 comment

Comments

@MacKLess
Copy link
Collaborator

MacKLess commented Sep 1, 2018

Description

This issue derives from a fix to #724. The CSS and JS settings on the beautifier still autodetect the base indent of inputted code when the "Indent_Level" is set to zero.

Input

The code looked like this before beautification:

	.a {
	text-align: right;
	}

Expected Output

The code should have looked like this after beautification:

.a {
    text-align: right;
}

Actual Output

The code actually looked like this after beautification:

	.a {
	    text-align: right;
	}

Environment

OS:

Settings

Example:

{
    "indent_size": 4,
    "indent_char": " ",
    "indent_level": 0,
    "indent_with_tabs": false,
    "preserve_newlines": true,
    "max_preserve_newlines": 10,
    "jslint_happy": false,
    "space_after_anon_function": false,
    "brace_style": "collapse,preserve-inline",
    "keep_array_indentation": false,
    "keep_function_indentation": false,
    "space_before_conditional": true,
    "break_chained_methods": false,
    "eval_code": false,
    "unescape_strings": false,
    "wrap_line_length": 0
}
@bitwiseman
Copy link
Member

bitwiseman commented Sep 1, 2018

Fixing this is likely to cause significant formatting changes. It's good that you separated it from the original issue. This issue will likely need to wait until v2.0 to fix.

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

2 participants