Home Download Buy Blog Forum Support

[Bug] Reindentation error in LESS/CSS files

[Bug] Reindentation error in LESS/CSS files

Postby Nivl on Sun Sep 16, 2012 3:10 pm

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: Select all
@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;
}


But if I use the reindent command on each lines I get:
Code: Select all
    @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;
    }


Which is very annoying since I use reindent a _lot_.

If someone found a way to fix this, please let me know.
Thanks :)
Nivl
 
Posts: 1
Joined: Sun Sep 16, 2012 2:58 pm

Return to Technical Support

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 45 guests