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

Remove line separator for invisible elements #404

Merged
merged 5 commits into from Jan 4, 2021

Conversation

sunng87
Copy link
Owner

@sunng87 sunng87 commented Dec 26, 2020

This patch is an attempt to fix #258 with pest grammar.

The draw back of current solution is it removed whitespaces after }} even if there is no line separator. Therefore this is going to be a break change. Case like

{{#each a}}{{this}}{{/each}} {{b}}
{"a": [1,2,3,4], "b": "good"}

Now renders as 1234good instead of 1234 good.

I'm trying to figure out if there is any solution to retain these whitespaces.

Update: the issue is fixed via 181565f

@sunng87 sunng87 merged commit 6691f4b into master Jan 4, 2021
@sunng87 sunng87 deleted the feature/remove-line-separator branch January 4, 2021 15:51
sunng87 added a commit that referenced this pull request May 28, 2021
@vojtechkral vojtechkral mentioned this pull request Jul 22, 2021
bors added a commit to rust-lang/crates.io that referenced this pull request Sep 13, 2021
Update `handlebars` crate to v4.1.3

see https://github.com/sunng87/handlebars-rust/blob/master/CHANGELOG.md

~It looks like none of the breaking changes in the v4 release are relevant to us.~

Update: I was wrong, sunng87/handlebars-rust#404 does affect us. I've added another commit which removes the now problematic handlebars whitespace control characters.
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.

stripping lines that are "standalone" helpers
1 participant