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

strip empty text nodes #45

Merged
merged 1 commit into from
May 2, 2017
Merged

strip empty text nodes #45

merged 1 commit into from
May 2, 2017

Conversation

yoshuawuyts
Copy link
Collaborator

Makes it so that random whitespace does not create empty text nodes

See Also

@yoshuawuyts yoshuawuyts merged commit 66fcc40 into master May 2, 2017
@yoshuawuyts yoshuawuyts deleted the strip-empty-text-nodes branch May 2, 2017 19:15
@yoshuawuyts
Copy link
Collaborator Author

v3.7.3

@mantoni
Copy link

mantoni commented May 10, 2017

This screws up my layouts @yoshuawuyts

Consider this:

<em>Yes</em>
<span>yo</span>

This should render as "Yes yo". With this change it becomes "Yesyo".

You can replace multiple whitespace characters with a single blank though. That'd be fine.

@arturi
Copy link
Contributor

arturi commented May 13, 2017

Yeah, we also ran into this with Uppy:

<div>
  <strong>${this.i18n('chooseFile')}</strong> <span class="UppyDragDrop-dragText">${this.i18n('orDragDrop')}</span>
</div>

Space between strong and span gets removed :(

arturi added a commit to transloadit/uppy that referenced this pull request May 13, 2017
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