-
Notifications
You must be signed in to change notification settings - Fork 32
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
Support whitespace control (~
)
#46
Comments
You give me work, I’ll give you work! |
Ya, we can either use the source info to introspect for the Should be straight forward to add I think, see here: That location (and the BlockStatement one) receive the result of the handlebars parser, which has |
While we await this issue being resolved, I'm skipping files that contain a |
Just wanted to mention glimmerjs/glimmer-vm#951, I think its probably good to land but was hoping to get a conceptual review by folks first. If no movement there in a few days, ping me again 😛 (I'm forgetful)... |
The fix in glimmerjs/glimmer-vm#951 has landed (which auto-closed this issue), reopening to track updating here to account for the changes. |
There is a test in the test('whitespace-control', () => {
let input = `
<div>
{{~both~}}
</div>
<div>
{{~left}}
</div>
<div>
{{right~}}
</div>
`;
expect(runTest('whitespace-control.hbs', input)).toMatchInlineSnapshot(`
"
<div>
{{~both~}}
</div>
<div>
{{~left}}
</div>
<div>
{{right~}}
</div>
"
`);
}); |
Sorry, spoke to soon, re-opening this issue |
I have opened this issue: And this failing test: |
Just released ember-template-recast@3.2.8 which fixes the issue mentioned above. The primary changes happened in glimmerjs/glimmer-vm#983 and handlebars-lang/handlebars.js#1584. This lib will need to update to the latest |
The following input:
results in the incorrect output:
we should leave
~
s in placeThe text was updated successfully, but these errors were encountered: