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

Separating 'input' elements adds whitespace #580

Closed
hurda opened this issue Nov 17, 2014 · 1 comment
Closed

Separating 'input' elements adds whitespace #580

hurda opened this issue Nov 17, 2014 · 1 comment
Milestone

Comments

@hurda
Copy link

hurda commented Nov 17, 2014

Beautifying

<div class="searchform"><input type="text" value="" name="s" id="s"/><input type="submit" id="searchsubmit" value="Search"/></div>

ends up as

<div class="searchform">
    <input type="text" value="" name="s" id="s" />
    <input type="submit" id="searchsubmit" value="Search" />
</div>

Which adds a whitespace between the two elements due to the newline before the second .

http://jsfiddle.net/kyof1y9o/

Tested on jsbeautifier.org

@bitwiseman bitwiseman added this to the 1.6.1 milestone Jan 29, 2016
@bitwiseman bitwiseman changed the title Separating <input>s adds whitespace Separating 'input' elements adds whitespace Jan 29, 2016
@bitwiseman
Copy link
Member

This looks to be fixed in 1.6.0. Need to add regression test.

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