-
Notifications
You must be signed in to change notification settings - Fork 225
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
Trim whitespace #287
Trim whitespace #287
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is amazing to see finally moving forward. I didn't go deep into implementation as I trust by this time it should be correct enough and tests look fine as well, only have few minor suggestions.
But we also need to update docs at least before this is released.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Hey 👋 I'm Eve, the friendly bot watching over Stencil 🤖 Thanks a lot for your contribution! Seems like everything is in order 👍 You did a good job here! 🤝 Generated by 🚫 Danger |
I've rebased the changes on top of the (currently still open) drop swift4 PR, TODO:
|
7933fab
to
07d9fb1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added some rudimentary docs & linked to those from Jinja. PR should now be complete.
Thank you @djbe for getting this across the line! Awesome work here in the repo in the last couple of days 💪 |
This takes the work that @bejar37 started in #92 and builds upon it.
In addition to the Jinja2 trimming symbols, this adds a
trimBehavior: TrimBehaviour
onEnvironment
. This defaults to.none
but can be customized. It also comes with a built in.smart
case that removes whitespace before a block, and whitespace and a single newline after a block.