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
Prettier's built-in HTML formatter has a known issue which sometimes causes closing HTML tags to be printed on two lines. For example: <a class="blog-related-posts__title-link" href="{{ post.absolute_url }}">{{ post.name }}</a></h3>
After some digging it looks like there are two issues at play here:
Prettier handles formatting for inline tags differently than block level tags in order to maintain whitespace as authored See: whitespace sensitive formatting
If the A tag get's authored like with line breaks, it should preserve them and avoid this output- but that might have whitespace implications in the rendered page.
<a>
{{ Text }}
</a>
There is ongoing debate that the closing tag should not wrap like that (see link above)- We'll need to wait this out to see how it's resolved.
Prettier's built-in HTML formatter has a known issue which sometimes causes closing HTML tags to be printed on two lines. For example:
<a class="blog-related-posts__title-link" href="{{ post.absolute_url }}">{{ post.name }}</a></h3>
becomes:
Reduced test case:
https://prettier.io/playground/#N4Igxg9gdgLgprEAuEAeAhgAjAG3QZ3wF4AdEACzgE9MZyBLfTRzLHaAc2z0Mx0ZhlWMGACdSIdFAh04ogLTsoHeehGj6AIwCu8IWrESpMyguOyFSlQY069IAHwcAJi4Bm7jqgD06ByAAaEAgABxh6aHxkUHRRUQgAdwAFWIQolHQcBPQqKKDNUXQwAGs4GABldABbOAAZeig4ZDdM-Dh8wpKy8pCiho5kMW12kDgqzThnZ0naqQ5tdA44ADEIUSqDfuRJXQhAihgqnAB1Bnh8XrA4crT6cIA3O6pt-DF6MBh9hrbRGCTCjgbZqtEYAK3wAA9yv0cHAAIraGRNJAtHBtIK9UQ-bbkQ44fYhDSwY70Zx0ZAADgADBj4m1joUQttCXAfvcmkEAI6I+D-ULpST4eSNSaTfaiODc+gS-6LIEokFBNpVeiDUTDJUw+E85Go9EgGDoTQksnkZAAJiCYnQ9H4ygAwhAqvLRvgAKz7bRtAAqRvSepG92GAEkoNNYOUwBowgBBMPlGBUWHAtFwAC+aaAA
The text was updated successfully, but these errors were encountered: