Skip to content

Having an empty multiline set as the last parameter in an application in a set puts it on an extra line #253

@dasJ

Description

@dasJ

That title should describe it… sorry for the length of it.

Given this input:

{
  test = app {
  };
}

I would expect the expression not to be reformatted at all. The current master version however returns:

{
  test =
    app
      {
      };
}

Interestingly enough, having a non-expanded second argument prevents this from happening, resulting in:

{
  test = app {
  } { };
}

It does however also happen if I start with two already-expanded attrsets as the parameters:

{
  test =
    app
      {
      }
      {
      };
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions