Package: astyle
Version: 3.1-2

The command

astyle --options=none --lineend=linux --style=1tbs --indent=force-tab=8
--break-blocks --indent-switches --pad-oper --pad-header --unpad-paren

did not change the following C code with version 3.0.1-1 nor 2.06-2:

void test_astyle(void)
{
        a = {
                1, 2, 3
        };

        b = {
                -1, 2, 3
        };

        c = {
                0, 1, 2
        };
}

Unfortunately, with 3.1-2, it does change it to:

void test_astyle(void)
{
        a = {
                1, 2, 3
        };

        b = {
                -1, 2, 3
                };

        c = {
                0, 1, 2
        };
}

I.e. the second closing curly brace gets an extra tab.

Reply via email to