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

Alternate approach: preserve single spacing and treat img as inline element #415

Merged
merged 2 commits into from
Oct 3, 2014

Conversation

jcharum
Copy link

@jcharum jcharum commented Feb 20, 2014

This is an alternate approach to the issue identified in #403.

It also fixes an issue introduced by #403 whereby:

<img> <b>content</b>

is beautified to be:

<img>  <b>content</b>

I think it may be more in line with how the rest of the code works. I leave it up to you to decide which makes more sense.

"<img> content" is beautified to become "<img>content".  However, the
space should be preserved, as it has meaning.  This commit fixes this
issue by being more careful to preserve whitespace in the appropriate
places.
@bitwiseman bitwiseman added this to the v1.6.0 milestone Oct 3, 2014
@bitwiseman bitwiseman merged commit af921c6 into beautifier:master Oct 3, 2014
bitwiseman added a commit that referenced this pull request Oct 3, 2014
@bitwiseman bitwiseman modified the milestones: v1.6.0, v1.5.4 Oct 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants