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

Formatter forces a newline before closing tags #193

Open
ijlind opened this issue Jun 23, 2024 · 0 comments
Open

Formatter forces a newline before closing tags #193

ijlind opened this issue Jun 23, 2024 · 0 comments

Comments

@ijlind
Copy link

ijlind commented Jun 23, 2024

I'm migrating a 11ty project from nunjucks to liquid and I'm using this plugin for formatting. For some reason though, this plugins formatter will force the closing tags of HTML content to always be on a new line. Is there a config I'm missing?

For example:

<section class="default-container prose">
  <h1>Main Header</h1>
  ...
</section>

→ Will become

<section class="default-container prose">
  <h1>Main Header
  </h1>
  ...
</section>

and

<ul>
  <li>Item 1</li>
  <li>Item 2</li>
  ...
</ul>

→ Will become

<ul>
  <li>Item 1
  </li>
  <li>Item 2
  </li>
  ...
</ul>

I'd understand moving the closing tag to a new line if the tag content would also be on a separate line e.g.

<h1 class="some heading classes">
  This is a really long heading 
</h1>```
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