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

I have a regression of that bug it seems #254

Open
zimbatm opened this issue Jul 7, 2021 · 3 comments
Open

I have a regression of that bug it seems #254

zimbatm opened this issue Jul 7, 2021 · 3 comments
Assignees

Comments

@zimbatm
Copy link
Member

zimbatm commented Jul 7, 2021

I have a regression of that bug it seems
https://github.com/NixOS/nixpkgs/pull/129392/files
Running nixpkgs-fmt on the files of the PR will add spaces on multiline comments

Originally posted by @happysalada in #232 (comment)

@zimbatm
Copy link
Member Author

zimbatm commented Jul 7, 2021

I don't think it's the same issue. The previous one was that formatting the code twice would not give the same result. This seems to be an issue with the indent in the comment section, but that is idempotent.

@happysalada
Copy link

Thank you for creating a new issue and for having a look!

@lrworth
Copy link

lrworth commented Sep 7, 2021

nixpkgs 1.2.0 formats this block like this:

let in
# Line 1
  # Line 2
{ }

The second comment line should be aligned with the first.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants