Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indentation Issues #63

Open
PuercoPop opened this issue Oct 14, 2012 · 0 comments
Open

Indentation Issues #63

PuercoPop opened this issue Oct 14, 2012 · 0 comments

Comments

@PuercoPop
Copy link

I don't know if I should file two separate issues or not. I intuit they are relaed

First issue about indentation

<ul class="nav pull-right">
  {% if user.is_authenticated %}
  <li><a href="/register/">Regístrate</a></li>
  {% else %}
    <li><a href="/register/">Regístrate</a></li>
  <li><a href="/login/">Login</a></li>
{% endif %}
</ul>

When it should look like this

<ul class="nav pull-right">
  {% if user.is_authenticated %}
  <li><a href="/register/">Regístrate</a></li>
  {% else %}
    <li><a href="/register/">Regístrate</a></li>
    <li><a href="/login/">Login</a></li>
  {% endif %}
</ul>

Althought it correctly indendents this

{% if user.is_authenticated %}
  <ul class="nav pull-right">      
      <li><a href="/register/">Regístrate</a></li>
  </ul>
{% else %}
  <ul class="nav pull-right">
    <li><a href="/register/">Regístrate</a></li>
    <li><a href="/login/">Login</a></li>
  </ul>
{% endif %}

The second issue is that pony-mode doesn't indent and prevents HTML-mode to indent if there are no characters on the line. Not even ctrl-j works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant