prettier/tests/handlebars-text-wrap
Chad Carbert a7cae47cdf Glimmer: Improve whitespace handling (#6354)
* Improve curly and whitespace handling

* Refactoring and clean up

* Collapse elements with non-whitespace children

* Clean selfClosing check in AST compare

selfClosing tags can't be considered when using AST_COMPARE=1.
The new AST may have a Glimmer component that has been collapsed,
ie: <HelloWorld></HelloWorld> -> <HelloWorld />

These result in different ASTs and thereofre we need to clean the
check that compares self-closing in the before and after ASTs

Co-authored-by: Jamie White <jamie@jgwhite.co.uk>

* Add istanbul ignore for ternaries in utilities

* Improve handling around whitespace near elements and block statements

* Update tests after rebasing

* Fix CHANGELOG.unreleased.md after rebase

* Tweak regex around leading and trialing line beraks and update test

Co-authored-by: FabHof <35104465+FabHof@users.noreply.github.com>

* Extract attribute value from concat node
2019-10-21 23:51:41 +02:00
..
__snapshots__ Glimmer: Improve whitespace handling (#6354) 2019-10-21 23:51:41 +02:00
jsfmt.spec.js chore(Handlebars): Refactor test suite (#6378) 2019-08-12 10:35:13 -03:00
test.hbs chore(Handlebars): Refactor test suite (#6378) 2019-08-12 10:35:13 -03:00