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

Conserve the html spacing between tags #373

Merged
merged 1 commit into from
Dec 22, 2017

Conversation

ssuman
Copy link
Contributor

@ssuman ssuman commented Dec 22, 2017

#372

Currently, HTML minification strips the space between two tags. The result might become "helloworld"

<i>hello</i> <i>world</i>

This PR would prevent that from happening.

@@ -11,5 +11,6 @@ <h1>Hello world</h1>
<a href="tel:+33636757575">Tel link</a>
<script src="index.js"></script>
<script src="https://unpkg.com/parcel-bundler"></script>
<i>hello</i> <i>world</i>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To elaborate on this scenario, since you wouldn't write the above html in practice, consider the following:

<div>
<span class="a">Hello in style a</span> <span class="b">World in style b</span>
</div>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@brandon93s Should I update my PR ? Or is this just for info ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just info for reviewers.

Copy link
Member

@devongovett devongovett Dec 22, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, wonder why this is the default behavior for htmlnano? should bring this up with them?

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

Successfully merging this pull request may close these issues.

3 participants