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

Bad indent level(HTML) #1213

Closed
da0ka opened this issue Jul 10, 2017 · 6 comments
Closed

Bad indent level(HTML) #1213

da0ka opened this issue Jul 10, 2017 · 6 comments

Comments

@da0ka
Copy link

da0ka commented Jul 10, 2017

for example
input:<ul><li>ab<li>cd</ul><dl><dt>ef<dt>gh</dt></dl>

@bitwiseman
Copy link
Member

@da0ka - And what was the actual and expected output?

@da0ka
Copy link
Author

da0ka commented Jul 13, 2017

I hope below.

<ul>
	<li>ab
	<li>cd
</ul>
<dl>
	<dt>ef
	<dt>gh
</dl>

@bitwiseman
Copy link
Member

bitwiseman commented Jul 13, 2017

And currently, it comes out like this on jsbeautifier.org:

<ul>
  <li>ab
    <li>cd</ul>
<dl><dt>ef<dt>gh</dt></dl>

Yuck.

@prettydiff
Copy link

Please notice the first list item tag is il instead of li, which is likely the problem here.

@bitwiseman
Copy link
Member

@prettydiff - Good catch, but same output. I've edited to fix.

@MacKLess MacKLess added this to the v1.8.x milestone Aug 23, 2018
@bitwiseman
Copy link
Member

Output in 1.8.7:

<ul>
  <li>ab
  <li>cd
</ul>
<dl><dt>ef<dt>gh</dt></dl>

Getting better all the time.

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

4 participants