Glavin001 / atom-beautify

:mega: Help Wanted - Looking for Maintainer: https://github.com/Glavin001/atom-beautify/issues/2572 | :lipstick: Universal beautification package for Atom editor (:warning: Currently migrating to https://github.com/Unibeautify/ and have very limited bandwidth for Atom-Beautify Issues. Thank you for your patience and understanding :heart: )
http://unibeautify.com/
MIT License
1.5k stars 454 forks source link

indentation settings ignored for angular HTML files #1116

Closed fthebaud closed 7 years ago

fthebaud commented 8 years ago

Version

Atom 1.9.2, atom-beautify 0.29.10

Description

Trying to beautify a HTML file that contains angular directives.

Settings in the html section: 20160805-17 25 13

Expected: the indentation to be equal to 2 spaces. Results: the indentation is still equal to 4 spaces.

The angularjs package is installed, and type of the file is HTML (angular). 20160805-17 28 45

If I force the grammar to be just HTML instead of HTML (angular), the indentation setting is taken into account and the indentation is correct (i.e. equal to 2 spaces0.

prettydiff commented 8 years ago

Would you mind generating a debug.md file and pasting it into a gist? It could be a broken Atom Beautify setting related to a specific grammar, a setting not being passed to a beautifier used for a specific grammar, or a grammar that isn't completely recognized.

fthebaud commented 8 years ago

https://gist.github.com/anonymous/7e0e672eddc67e841295aae381491ce9

NodeJoSe commented 7 years ago

You need to configure the EJS setting on atom-beautify, those are the settings for HTML (Angular)..

Glavin001 commented 7 years ago

@NodeJoSe is correct. Based on the debug.md provided above you need to change the EJS settings, such as EJS - Indentation Size.