Hirse / brackets-beautify

Brackets Extension to beautify JavaScript, HTML, and CSS files.
MIT License
34 stars 3 forks source link

Inconsistency in indentation #8

Closed edoher closed 8 years ago

edoher commented 8 years ago

Hi, The plugin doesn't work consistently, leading to have this differences in the same HTML file.

                                                    <div class="button right">
                                                        <a href="cont_1_tech_specs.php">
                                                                            Find technical specifications
                                                                            <i class="velux-icon icon-chevron-right-white"></i>
                                                                        </a>
                                                    </div>
                                                <li>
                                                    <a href="#">Balcony and terrace</a>
                                                </li>
<li><a href="#">Domestic buildings</a></li>
Hirse commented 8 years ago

How do you format the file? Do you run beautify on the whole file or only on the selected snippits? In the latter case, there can be issues due to missing context in the formatting.

In any case, please test the beautification with the library directly here: http://jsbeautifier.org/ I have a feeling this is (also) an issue with the library rather than this extension.

edoher commented 8 years ago

I do it both by pressing Ctrl + Alt + B or simply by setting "Beautify on save" to checked.