prettier / plugin-pug

Prettier Pug Plugin
https://prettier.github.io/plugin-pug
MIT License
196 stars 44 forks source link

Bug(svelte): the closing </template> tag is moved to the after last word #468

Open rodshtein opened 11 months ago

rodshtein commented 11 months ago

Info

Tool Version
Plugin v3.0.0
Prettier v3.0.3
Framework svelte 4.2.0
Node v18.16.1
OS mac

Prettier config

{
  "useTabs": false,
  "singleQuote": true,
  "trailingComma": "none",
  "printWidth": 100,
  "plugins": ["@prettier/plugin-pug", "prettier-plugin-svelte"],
  "pluginSearchDirs": ["."],
  "overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }],
  "pugSingleQuote": false,
  "pugSortAttributes": "asc",
  "pugFramework": "svelte"
}

Input

<template lang="pug">
  p digest
</template>

Output

<template lang="pug">
  p digest</template>

Expected Output

<template lang="pug">
  p digest
</template>

Additional Context

At the moment it breaks the styles highlight

image