Skip to content

Vue: fix format on blocks with src attribute#9052

Merged
fisker merged 4 commits intoprettier:masterfrom
fisker:vue-plugins
Aug 25, 2020
Merged

Vue: fix format on blocks with src attribute#9052
fisker merged 4 commits intoprettier:masterfrom
fisker:vue-plugins

Conversation

@fisker
Copy link
Member

@fisker fisker commented Aug 25, 2020

Fixes #9049

  • I’ve added tests to confirm my change works.
  • (If changing the API or CLI) I’ve documented the changes I’ve made (in the docs/ directory)
  • (If the change is user-facing) I’ve added my changes to changelog_unreleased/*/pr-XXXX.md file following changelog_unreleased/TEMPLATE.md.
  • I’ve read the contributing guidelines.

Try the playground for this PR

@fisker fisker changed the title Vue: fix template format for external files Vue: fix format on blocks with src attribute Aug 25, 2020
@fisker fisker marked this pull request as ready for review August 25, 2020 11:36
@fisker fisker mentioned this pull request Aug 25, 2020
6 tasks
@fisker fisker merged commit 073dfd9 into prettier:master Aug 25, 2020
@fisker fisker deleted the vue-plugins branch August 25, 2020 15:06
@thorn0
Copy link
Member

thorn0 commented Aug 25, 2020

Even though it might be not very useful code, this looks strange:

Prettier pr-9052
Playground link

--parser vue

Input:

<custom lang="markdown" />

Output:

<custom lang="markdown"

/>

@fisker
Copy link
Member Author

fisker commented Aug 25, 2020

I'll send another PR for this.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Vue template with src not well formatted when installed a plugin that transforms the template tag's content (since 2.1.0)

5 participants