NiklasPor / prettier-plugin-go-template

Fixes prettier formatting for go templates 🐹
prettier-plugin-go-template-niklaspor.vercel.app
MIT License
343 stars 24 forks source link

File with just text and go template command is not idempotent #69

Closed jasikpark closed 2 years ago

jasikpark commented 2 years ago

When giving prettier-plugin-go-template@0.0.12-beta-1

hello
{{ world }}

formatting it once outputs

hello {{ world }}

and then formatting that output again (imagine you've saved twice in your editor)

hello
{{ world }}
NiklasPor commented 2 years ago

@jasikpark can you validate if this is fixed in prettier-plugin-go-template@0.0.12-beta.2?

jasikpark commented 2 years ago

That particular variant seems to be fixed