Skip to content

Indentation bug for sections starting with ^ #14

@nikolas

Description

@nikolas

mustache-mode correctly indents the closing tag for a section like this:

{{#owners}}
    <li>
        <a class="switcher-choice owner"
            href="{{username}}">{{public_name}}</a>
    </li>
{{/owners}}

However, if the section starts with a caret, this is how mustache-mode indents the region:

{{^owners}}
    <li>
        <a class="switcher-choice owner"
            href="{{username}}">{{public_name}}</a>
    </li>
    {{/owners}}

The closing tag should be on the same column as the opening tag.

I'm using mustache-mode from melpa, v20141024.732, emacs 24.5.50.4.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions