Skip to content

align-table-field not follow "use-tab" #172

@cissoid

Description

@cissoid

This is the test file:

local t = {
    "a very long statement ------------------------------------", "a very long statement ------------------------------------"
}

Then I format with these arguments:

lua-format --use-tab --indent-width=1 --align-table-field test.lua | cat -A

final output:

local t = {$
^I"a very long statement ------------------------------------",$
 "a very long statement ------------------------------------"$
}$

The first field use one tab indent as expected, but the second field is indented with a space.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions