Skip to content

[Question] Disable/customize auto formatting on save #3

@detectedstealth

Description

@detectedstealth

When adding JS specifically I am using Django to render in the background so If I have:

var isAuthenticated = {% if purchase_session.username %}true{% else %}false{% endif %};

The auto format changes it to this which prevents Django from parsing out its tags:

var isAuthenticated = {
    %if purchase_session.username%}
  true{
    %else%}
    false{
      %endif%};

Is there a way to prevent the auto formatting of code inside <script> tags?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions