Skip to content
This repository has been archived by the owner on Mar 23, 2018. It is now read-only.

Remove unnecessary whitespace #6

Closed
goto-bus-stop opened this issue Feb 6, 2017 · 0 comments
Closed

Remove unnecessary whitespace #6

goto-bus-stop opened this issue Feb 6, 2017 · 0 comments

Comments

@goto-bus-stop
Copy link
Owner

Right now

bel`
  <div>
    Contents
  </div>
`

generates something like

_div = document.createElement('div'), _div.textContent = '\n    Contents\n  '

But since it's semantically the same as

bel`<div>Contents</div>`

It could generate

_div = document.createElement('div'), _div.textContent = 'Contents'

instead.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant