When using the option blank_line_after_tag the formatter should not add a new blank line if the line directly after the tag is a closing tag with decreasing indent:
<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="UTF-8">
<title>
{% block title %}My website{% endblock %} <!-- There should not be a new line after this -->
</title>
<link rel="icon" href="{{ asset("logo.ico") }}" type="image/x-icon">
{# Run `composer require symfony/webpack-encore-bundle` to start using Symfony UX #}
{% block stylesheets %}{{ encore_entry_link_tags("app") }}{% endblock %} <!-- Here is OK -->
{% block javascripts %}{{ encore_entry_script_tags("app") }}{% endblock %} <!-- There should not be a new line after this -->
</head>
<body>
{{ include("shared/_header.html.twig") }}
<div class="container mx-auto">
{% block body %}{% endblock %} <!-- There should not be a new line after this -->
</div>
</body>
</html>
How To Reproduce
Set blank_line_after_tag to a tag and format the file.
System Info
Python 3.8.10
)1.34.1
)Issue
When using the option
blank_line_after_tag
the formatter should not add a new blank line if the line directly after the tag is a closing tag with decreasing indent:How To Reproduce
Set
blank_line_after_tag
to a tag and format the file.Thanks!