Pycharm isn't formatting Django template tags as intended to in my template files

For example in my base.html the beginning of the file looks like this

{% load static %}
<!doctype html>
<html lang="en">
    <head>
       {# some content #}
    </head>

    <body>
        {# some static content content #}
        {% block section %}

        {% endblock section %}
        
    </body>
</html>

but after formatting specifically the 2 first lines become like this 

{% load static %}<!doctype html>

and i tried tweaking the html code style options but no hope and unfortunately i honestly didn't found anyone posting same issue in the community, and this isn't the only case for example like in this picture the file stays the same, so wondering how to overcome such problems and Thank You!

 

 

 

 

 

 

 

1

Please sign in to leave a comment.