[Formatting Bug]: punctuation on new line
Version
1.14.1
Template before formatting
<p>
hello <b>there</b>.
<p>
Template after formatting
<p>
hello
<b>there</b>
.
<p>
Expected Behaviour
either
<p>
hello <b>there</b>.
<p>
or
<p>
hello
<b>there</b>.
<p>
any punctuation after a tag is on a new line, which means a space gets aded on render. Not sure best way it should be handle though
Relevant log output
No response
Yes, same here. Is there any workaround?
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days
Bump
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days
Bump
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days
Anybody home?
Sorry I can not reproduce the behaviour. Can you provide the config? Thanks.
$ cat test.blade.php
<p>
hello <b>there</b>.
<p>
$ ./bin/blade-formatter.cjs test.blade.php
<p>
hello <b>there</b>.
<p>
My .prettierrc:
{
"printWidth": 120,
"tabWidth": 4,
"trailingComma": "all",
"singleQuote": true,
"bracketSpacing": true,
"useTabs": true,
"plugins": ["prettier-plugin-blade", "prettier-plugin-tailwindcss"],
"overrides": [
{
"files": ["*.blade.php"],
"options": {
"parser": "blade"
}
}
]
}
oh hmmm it looks like we're using https://www.npmjs.com/package/prettier-plugin-blade in our project, which I somehow mistook for this project!
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days