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

gogo-code-plugin-prettier misplacement for innerHTML text with no surrounding spaces #236

Open
mike1936 opened this issue Aug 21, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@mike1936
Copy link

  • version:
node version 16.20.1

gogocode-cli@0.2.28
gogocode-plugin-prettier@0.0.1
  • playground demo: NA
  • your description:

opening tag >, innerHTML and closing tag are not placed correctly when innerHTML is not surrouned by space after executing
gogocode -s ./test.vue -t gogocode-plugin-prettier -o ./test.vue

Original code:

<!-- test.vue -->
<template>
  <el-button type="primary" size="mini" @click="handleEdit(scope)">edit</el-button>
</template>

Code after executing prettier

<!-- test.vue -->
<template>
  <el-button type="primary" size="mini" @click="handleEdit(scope)"
    >edit</el-button
  >
</template>

Note that if the innterHTML is surrouded by spaces, the prettier works fine as expected.

@mike1936 mike1936 added the bug Something isn't working label Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant