Skip to content

Bug: adds unwanted space if pugSingleFileComponentIndentation is true #547

@Ralac07

Description

@Ralac07

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

Metadata

Metadata

Assignees

Labels

framework: VueRelated to the framework Vuetype: bugFunctionality that does not work as intended/expected

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions