LuaFormatter icon indicating copy to clipboard operation
LuaFormatter copied to clipboard

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

Open cissoid opened this issue 4 years ago • 0 comments

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.

cissoid avatar Mar 31 '21 04:03 cissoid