Skip to content

Allow html-indent to start with 0 indent #360

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

Closed
rightaway opened this issue Jan 24, 2018 · 1 comment
Closed

Allow html-indent to start with 0 indent #360

rightaway opened this issue Jan 24, 2018 · 1 comment

Comments

@rightaway
Copy link

rightaway commented Jan 24, 2018

html-indent requires something like

<template>
  <div>
    <div>
      ...
    </div>
  </div>
</template>

I'd like an option where it's possible to have it like this, where the first element under the template has no indent (lined up with template tag), and everything under that is indented normally. When you have large templates that are nested deeply, saving that first level of indentation saves space. It also allows being consistent with the rules for the <script> tags which allow things underneath it to start with an indentation level of 0.

<template>
<div>
  <div>
    ...
  </div>
</div>
</template>
@mysticatea
Copy link
Member

Thank you for the issue.

I think this is a duplicate of #292. Please track that.

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

No branches or pull requests

2 participants