Skip to content

Variable table formating #7

Open
@KINFOO

Description

@KINFOO

Hi,

I encountered some strange table formating:

$ cat /tmp/sampletable.lua 
local sometable = {
-- TODO
}
$ luaformatter /tmp/sampletable.lua 
local sometable = {
  -- TODO
  }

It is different when there is a value in table:

$ cat /tmp/sampletablewithvalue.lua 
local sometable = {
-- TODO
42
}
$ luaformatter /tmp/sampletablewithvalue.lua 
local sometable = {
  -- TODO
  42
}

It would be nice to have consistent formating.

Kevin

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions