You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before you submit an issue we recommend you drop into the Gitter community and ask any questions you have or mention any problems you've had getting started with prettyhtml.
🐛 Bug Report
Prettyhtml format comment add an intend every running format.
To Reproduce
Steps to reproduce the behavior:
Paste your markup here:
<script>/* test test */</script>
Expected behavior
I think prettyhtml should do nothing with the comment,prettier also do nothing.
Paste the results here:
<script>/* test test */</script>
Context
[
Vue
Your Environment
Prettyhtml version: 0.8.7
NodeJs version: 8.12
Environment name and version:
Operating System and version:
The text was updated successfully, but these errors were encountered:
Hi @xiaomingplus thank you for the bug report but this is indeed the correct behaviour. We indent the code with the base indentation. This is an opinionated approach discussed in detail here
<script>
/* test
test */
var a = "deded"
</script>
<script>
/* test
test */
var a = "deded";
</script>
Before you submit an issue we recommend you drop into the Gitter community and ask any questions you have or mention any problems you've had getting started with prettyhtml.
🐛 Bug Report
Prettyhtml format comment add an intend every running format.
To Reproduce
Steps to reproduce the behavior:
Paste your markup here:
Expected behavior
I think prettyhtml should do nothing with the comment,prettier also do nothing.
Paste the results here:
Context
[
Vue
Your Environment
The text was updated successfully, but these errors were encountered: