Skip to content

Variable table formating #7

@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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions