Skip to content

Indent file has incorrect spacing when enter after certain lines #35

@MarkCodesTheWeb

Description

@MarkCodesTheWeb

I'm not really sure how to explain this one but when I click "enter/return" after certain characters it goes to position 200 on the next line.

For example with the following snippet:

{% block content %}
{{ Content | safe }}
{% endblock %}

If I click return after the first %} or the first }} it will put me on the next line at position 200 (so it's indenting 200 spaces). But if I click return after the last %} it goes to the next line as normal.

My solution, for now, is to just not use the indent file but it would be nice to have it indent properly. I don't understand the script enough to see what is causing this to happen though.

I'm using Astro Vim's default settings and this is the only additional plugin I've added. All the highlighting is working correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions