Sublime Forum

[Bug] Reindentation error in LESS/CSS files

#1

Hi,

I think I just found a bug when reindenting a single line in LESS and CSS files:

If I execute the reindent lines command I get this output (which is correct):

[code]@import “…/…/bootstrap/less/mixins”;
@import “…/…/bootstrap/less/variables”;
@import url(“http://fonts.googleapis.com/css?family=PT+Sans”);

/******************************************************************************

  • MIXINS
    *****************************************************************************/

.transition-delay(@value) {
-webkit-transition-delay: @value;
-moz-transition-delay: @value;
-o-transition-delay: @value;
-ms-transition-delay: @value;
transition-delay: @value;
}

.transform-style(@value) {
-webkit-transform-style: @value;
-moz-transform-style: @value;
-o-transform-style: @value;
-ms-transform-style: @value;
transform-style: @value;
}[/code]

But if I use the reindent command on each lines I get:

[code] @import “…/…/bootstrap/less/mixins”;
@import “…/…/bootstrap/less/variables”;
@import url(“http://fonts.googleapis.com/css?family=PT+Sans”);

/******************************************************************************
  • MIXINS
    *****************************************************************************/

.transition-delay(@value) {
-webkit-transition-delay: @value;
-moz-transition-delay: @value;
-o-transition-delay: @value;
-ms-transition-delay: @value;
transition-delay: @value;
}

.transform-style(@value) {
    -webkit-transform-style: @value;
    -moz-transform-style: @value;
    -o-transform-style: @value;
    -ms-transform-style: @value;
    transform-style: @value;
}[/code]

Which is very annoying since I use reindent a lot.

If someone found a way to fix this, please let me know.
Thanks :slight_smile:

0 Likes