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

Bug: adds unwanted space if pugSingleFileComponentIndentation is true #547

Open
2 of 7 tasks
Ralac07 opened this issue Feb 8, 2025 · 1 comment · May be fixed by #549
Open
2 of 7 tasks

Bug: adds unwanted space if pugSingleFileComponentIndentation is true #547

Ralac07 opened this issue Feb 8, 2025 · 1 comment · May be fixed by #549
Assignees
Labels
framework: Vue Related to the framework Vue type: bug Functionality that does not work as intended/expected

Comments

@Ralac07
Copy link

Ralac07 commented Feb 8, 2025

Plugin Version

v3.2.1

Prettier Version

v3.4.2

Which frameworks are affected?

  • none
  • vue
  • angular
  • svelte

Node Version

v23.5.0

Which operating systems have you used?

  • Linux
  • macOS
  • Windows

Prettier config

{
  "plugins": ["@prettier/plugin-pug"],
  "pugSingleFileComponentIndentation": true
}

Input

<template lang="pug">
ul
  each val in [1, 2, 3, 4, 5]
    li= val
</template>

Output or Error

<template lang="pug">
  ul
    each val in [1, 2, 3, 4, 5]
      li  = val
</template>

Expected Output

<template lang="pug">
  ul
    each val in [1, 2, 3, 4, 5]
      li= val
</template>

Additional Context

No response

@Shinigami92 Shinigami92 self-assigned this Feb 8, 2025
@Shinigami92 Shinigami92 added type: bug Functionality that does not work as intended/expected framework: Vue Related to the framework Vue labels Feb 8, 2025
@Shinigami92 Shinigami92 linked a pull request Feb 8, 2025 that will close this issue
@Shinigami92
Copy link
Member

@Ralac07 I will now also notify you here, please have a look into the PR and tell me if this is sufficient or if I need to add more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
framework: Vue Related to the framework Vue type: bug Functionality that does not work as intended/expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants