thx / gogocode

GoGoCode is a transformer for JavaScript/Typescript/HTML based on AST but providing a more intuitive API.
MIT License
5.47k stars 417 forks source link

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

Open mike1936 opened 1 year ago

mike1936 commented 1 year ago

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:

Code after executing prettier


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