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

Statements do not remove break lines #662

Open
ylacaute opened this issue May 11, 2021 · 1 comment
Open

Statements do not remove break lines #662

ylacaute opened this issue May 11, 2021 · 1 comment

Comments

@ylacaute
Copy link
Contributor

ylacaute commented May 11, 2021

This code (update a map) :

{{- contract.update({"key": val}) -}}
Hello

Should be rendered exactly as Hello without any break line, but it generates :

\n
Hello
@ylacaute ylacaute changed the title Comments do not remove breakline Comments do not remove break lines May 11, 2021
@ylacaute ylacaute changed the title Comments do not remove break lines Statements do not remove break lines May 12, 2021
@ylacaute ylacaute reopened this May 12, 2021
@jasmith-hs
Copy link
Contributor

You can also use {%- do contract.update({"key": val}) -%}
The DoTag is for when you don't care about the output

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

No branches or pull requests

2 participants