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(svelte): the closing </template> tag is moved to the after last word #468

Open
rodshtein opened this issue Sep 20, 2023 · 0 comments · May be fixed by #469
Open

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

rodshtein opened this issue Sep 20, 2023 · 0 comments · May be fixed by #469
Labels
framework: Svelte Related to the framework Svelte type: bug Functionality that does not work as intended/expected

Comments

@rodshtein
Copy link

rodshtein commented Sep 20, 2023

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

@Shinigami92 Shinigami92 added the type: bug Functionality that does not work as intended/expected label Sep 20, 2023
@Shinigami92 Shinigami92 linked a pull request Sep 20, 2023 that will close this issue
@Shinigami92 Shinigami92 added the framework: Svelte Related to the framework Svelte label Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
framework: Svelte Related to the framework Svelte 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