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

Already on GitHub? Sign in to your account

Bugs with HTML and XML #150

Closed
Infocatcher opened this Issue Sep 28, 2012 · 3 comments

Comments

Projects
None yet
3 participants
Contributor

Infocatcher commented Sep 28, 2012

Before:

<div>
test
<a href="/">test</a>
</div>

After, with default settings:

<div>test
<a href="/">test</a>

</div>

Unwanted empty line after "</a>".

XML example, before:

<test>
test
<link>test</link>
</test>

After, with

unformatted = ['link'];
<test>test<link>test</link>
</test>

Why we get different behavior?
And wrongly removed space before "<link>".

Contributor

einars commented Oct 5, 2012

/ the behaviour starts in commit 34f5933, in a fix for #136, "beautify-html breaks the spacing of inline elements"

Contributor

bitwiseman commented Jun 11, 2013

Still present in 1.4.0, but the behavior has changed.

Input:

<test>
test
<link>test</link>
</test>
<test>test <link>test</link></test>

Output:

<test>
    test
    <link>test</link>
</test>
<test>test
    <link>test</link>
</test>
Contributor

bitwiseman commented Mar 7, 2015

The original problem here is fixed. I'm closing this.

@bitwiseman bitwiseman closed this Mar 7, 2015

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