Skip to content

prettier-plugin-sh Dockerfile multi-line ENV with comments doesn't \ #398

Closed

Description

@InsidersByte

When formatting this with [email protected] it doesn't keep the \ and the indenting which ends up with the Dockerfile being invalid.

# Before

ENV a=1 \
  b=2 \
  # comment
  c=3 \
  d=4 \
  # comment
  e=5
# After

ENV a=1 \
  b=2
# comment
c=3 \
  d=4
# comment
e=5

Activity

  1. reteps commented on Apr 4, 2025

    @reteps
    Contributor
  2. JounQin commented on Apr 4, 2025

    @JounQin
    Member
  3. JounQin commented on Apr 5, 2025

    @JounQin
    Member

    I'll try to upgrade latest mvdan/sh.

  4. JounQin commented on Apr 9, 2025

    @JounQin
    Member

    forgot to close with #432

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions