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

Multiline attribute is broken when using stripspace #68

Closed
arch-mage opened this issue Dec 24, 2019 · 2 comments
Closed

Multiline attribute is broken when using stripspace #68

arch-mage opened this issue Dec 24, 2019 · 2 comments
Labels

Comments

@arch-mage
Copy link

template

{% stripspace %}
{% func Page() %}
<form
  method="post"
>
  <input
    type="text"
    />
</form>
{% endfunc %}
{% endstripspace %}

output

<formmethod="post"><inputtype="text"/></form>

expected output

<form method="post"><input type="text"/></form>
@valyala
Copy link
Owner

valyala commented Dec 25, 2019

{%stripspace%} strips all the whitespace between lines. Try using{%collapsespace%} instead, which collapses whitespace between lines into a single space. Another solution is to insert explicit {%space%}, which is never removed.

@arch-mage
Copy link
Author

Oh, I see. I miss understood.

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

No branches or pull requests

2 participants