Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code formatter losing multilines in maps #6648

Closed
pragdave opened this issue Oct 9, 2017 · 1 comment
Closed

Code formatter losing multilines in maps #6648

pragdave opened this issue Oct 9, 2017 · 1 comment

Comments

@pragdave
Copy link
Contributor

pragdave commented Oct 9, 2017

This may be related to the previous one, but:

defp package do
    [
      files: [
        "lib", "mix.exs", "README.md"
      ],
      maintainers: [
        "Dave Thomas <dave@pragdave.me>"
      ],
      licenses: [
        "Apache 2 (see the file LICENSE.md for details)"
      ],
      links: %{
        "GitHub" => "https://github.com/pragdave/mix_templates",
      },
      version: @version,
    ]
  end

is formatted as

  defp package do
    [
      files: [
        "lib",
        "mix.exs",
        "README.md"
      ],
      maintainers: [
        "Dave Thomas <dave@pragdave.me>"
      ],
      licenses: [
        "Apache 2 (see the file LICENSE.md for details)"
      ],
      links: %{"GitHub" => "https://github.com/pragdave/mix_templates"},
      version: @version
    ]
  end

I really like the way it split files: onto multiple lines. But is also rewrapped links: onto one line.
And, in the process, it removed the spaces after %{ and before }.

Cheers

Dave

@fishcakez
Copy link
Member

This is the same bug as #6646.

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

No branches or pull requests

2 participants