Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

let binding with if dedents but without if indents #249

Open
jtojnar opened this issue May 17, 2021 · 0 comments
Open

let binding with if dedents but without if indents #249

jtojnar opened this issue May 17, 2021 · 0 comments
Assignees
Labels
formatting Issue with the output format

Comments

@jtojnar
Copy link

jtojnar commented May 17, 2021

Input

let
  foo = if condition then null else
    4;

in
true

Output

let
  foo = if condition then null else
  4;

in
true

Desired output

let
  foo = if condition then null else
    4;

in
true

Since if I remove the if statement, the 4 will get indented again:

let
  foo =
    4;

in
true

Noticed in nixos/modules/services/x11/display-managers/gdm.nix on NixOS/nixpkgs#121490

@jtojnar jtojnar added formatting Issue with the output format needs triage labels May 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
formatting Issue with the output format
Projects
None yet
Development

No branches or pull requests

3 participants