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

Leading Spaces NOT Allowed in .editorconfig #96

Open
SrinivasRG opened this issue Aug 27, 2015 · 4 comments
Open

Leading Spaces NOT Allowed in .editorconfig #96

SrinivasRG opened this issue Aug 27, 2015 · 4 comments
Labels

Comments

@SrinivasRG
Copy link

Leading Spaces NOT Allowed in .editorconfig

There are leading spaces in the .editorconfig as shown below

[**.js]
indent_style = space
indent_size = 4

Here are the steps I did:

  1. Opened gedit
  2. Copied and pasted straight from the suggested contents, in the web page which I have reproduced below,
    ; .editorconfig

root = true

[**.js]
indent_style = space
indent_size = 4

[**.jsx]
e4x = true
indent_style = space
indent_size = 4

[**.css]
indent_style = space
indent_size = 4

[**.html]
indent_style = space
indent_size = 4
max_char = 78
brace_style = expand

  1. Saved this as .editorconfig under ~/.vim
  2. open gvim (vim-gnome) and run the command :echo b:config_Beautifier

And this is what I get:
image

When I remove the leading spaces, as shown in the sample below:

; .editorconfig

root = true

[**.js]
indent_style = space
indent_size = 4

And then this is what I get when I open gvim and try :echo b:config_Beautifier

image

If the leading spaces are present, then :echo b:config_Beautifier shows empty objects, When I removed the spaces, the settings are correctly shown. Please highlight this fact in the readme.

@maksimr
Copy link
Owner

maksimr commented Aug 27, 2015

@SrinivasRG leading space where? before indent_style or [**.js]
Thanks!

@maksimr maksimr added the bug label Aug 27, 2015
@maksimr
Copy link
Owner

maksimr commented Aug 27, 2015

Hm... I think I understand where
Good catch

@SrinivasRG
Copy link
Author

Hi, So you were able to reproduce the problem? Very nice of you indeed for all the help to the community. Keep up the good work. js-beautify has been very useful. Many thanks on behalf of the community.

@maksimr
Copy link
Owner

maksimr commented Aug 27, 2015

@SrinivasRG yup!

Thanks!

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

No branches or pull requests

2 participants