Skip to content

strip empty text nodes#45

Merged
yoshuawuyts merged 1 commit intomasterfrom
strip-empty-text-nodes
May 2, 2017
Merged

strip empty text nodes#45
yoshuawuyts merged 1 commit intomasterfrom
strip-empty-text-nodes

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