prettier / prettier/plugin-pug
Bug: adds unwanted space if pugSingleFileComponentIndentation is true
Open
@Shinigami92 is already working on this.
Since Feb 8, 2025.
framework: Vue
type: bug
- Dominant language
- TypeScript
- Stars
- 208
- Forks
- 49
- Avg merge
- 4h 26m
- Merged PRs (30d)
- 8
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.