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
<div><ahref="/some-long-href-lorem-ipsum/">Lorem ipsum lorem ipsum 1</a>,
<ahref="/some-long-href-lorem-ipsum/">Lorem ipsum lorem ipsum 2</a>,
<ahref="/some-long-href-lorem-ipsum/">Lorem ipsum lorem ipsum 3</a></div>
If I put this code into a component.html file and let prettier format it then the formatting stays as it is above.
However if I put this markup into a component.svelte file then it gets formatted to this:
<div><ahref="/some-long-href-lorem-ipsum/">Lorem ipsum lorem ipsum</a>
,
<ahref="/some-long-href-lorem-ipsum/">Lorem ipsum lorem ipsum</a>
,
<ahref="/some-long-href-lorem-ipsum/">Lorem ipsum lorem ipsum</a></div>
This is a problem if the a tags are styled as display: inline-block;. To avoid I have the folllowing setting in my .prettierrc file:
{ "htmlWhitespaceSensitivity": "strict" }
I suppose that prettier-plugin-svelte somehow doesn't regard this setting.
The text was updated successfully, but these errors were encountered:
I have markup for a component like this:
If I put this code into a
component.html
file and let prettier format it then the formatting stays as it is above.However if I put this markup into a
component.svelte
file then it gets formatted to this:This is a problem if the
a
tags are styled asdisplay: inline-block;
. To avoid I have the folllowing setting in my.prettierrc
file:I suppose that prettier-plugin-svelte somehow doesn't regard this setting.
The text was updated successfully, but these errors were encountered: