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

Should CiceroMark allow for whitespace control? #474

Open
jeromesimeon opened this issue Nov 1, 2019 · 1 comment
Open

Should CiceroMark allow for whitespace control? #474

jeromesimeon opened this issue Nov 1, 2019 · 1 comment

Comments

@jeromesimeon
Copy link
Member

It is sometimes convenient for readability to add non-significant whitespace around blocks markup. So instead of writing:

This is a lease for {{#with tenant}}{{partyId}}, domiciled at {{address}}{{/with}} entered at {{date}}.

one might want to write:

This is a lease entered by
{{#with tenant}}
   {{partyId}}, domiciled at {{address}}
{{/with}}
at {{date}}

But by default, this will interact with formatting and generate whitespace in the contract which may result in different rendering. Here is a proposal for how to add/control such whitespace based on https://handlebars-draft.knappi.org/guide/expressions.html#whitespace-control

{{~name}}  // Remove whitespace on left
{{name~}}  // Remove whitespace on right
{{~name~}} // Remove whitespace on both
@jeromesimeon
Copy link
Member Author

This is an issue inherited from #392

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant