We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
{% macro dash(a) -%} {{ a }} {{ a }} {%- endmacro %} /{{ dash("_") }}/
Produce /_ _/ as expected (no spaces outside, one inside) But :
{% macro dash(a) -%}{{ a }} {{ a }}{%- endmacro %} /{{ dash("_") }}/
Produce /__/ (no space outside, an no inside)
It that the expected behaviour ? "If the tag with tash is not followed by a space, then stip spaces after the next one"
The text was updated successfully, but these errors were encountered:
I think your code might be being mangled by the markdown parser. Can you put it all in ``` block code tags?
Sorry, something went wrong.
I've updated it. You can see the same behavior here : http://www.raymondcamden.com/demos/2014/oct/15/test.html
{% macro word(w) %}{{ w }}{% endmacro %} {% if 1 -%} {{ word('EVERYTHING')}} {{word('FINE')}}{% endif %} {% if 1 -%}{{ word('SOMETHING')}} {{word('WRONG')}}{% endif %}
Do not forget to put {} in the JSON part of the webpage.
EVERYTHING FINE SOMETHINGWRONG
To clarify the result : there was a space between "SOMETHING" and "WRONG" but the dash (-) removed it.
Merge pull request #631 from oyyd/fix
430e2fc
Fix unexpected whitespace control behavior, close #595.
Successfully merging a pull request may close this issue.
Produce /_ _/ as expected (no spaces outside, one inside)
But :
Produce /__/ (no space outside, an no inside)
It that the expected behaviour ? "If the tag with tash is not followed by a space, then stip spaces after the next one"
The text was updated successfully, but these errors were encountered: