aXen / web-indent

Automatically exported from code.google.com/p/web-indent
0 stars 0 forks source link

wrong indentation after simple control blocks #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Could you check indentation with folowing code. 
function test(a,b)
{                          // 0
    if(a<b) {                // 1
        dosomething(a);        // 2
        if(a > 0)              // 2
            dosomethingelse(a);  // 3
    } else                   // 1 
        dosomething(b);        // 2

    if(b>0){                 // 2
        dosomethingelse(b);    // 3 
    }                        // 2 
    else                     // 2
        alert("wrong b");      // 3
} 
I have used http://www.vim.org/scripts/download_script.php?src_id=13006 from 
http://www.vim.org/scripts/script.php?script_id=3081 

Original issue reported on code.google.com by p.grefen...@gmail.com on 27 Sep 2010 at 5:04

GoogleCodeExporter commented 9 years ago
I looked into your issue and it is indeed a bug with the script.  I'll be 
working on a fix for it and I'll let you know when the fix is released.  Thanks 
for bringing it to my attention.

Original comment by pkopr...@gmail.com on 17 Apr 2011 at 10:26