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

Parsing template with {- " " -}} should error #642

Closed
jsha opened this issue Jun 21, 2021 · 1 comment
Closed

Parsing template with {- " " -}} should error #642

jsha opened this issue Jun 21, 2021 · 1 comment

Comments

@jsha
Copy link
Contributor

jsha commented Jun 21, 2021

Steps to reproduce:

Parse template with:

<img {- " " -}}
  src="http://example.com/gif.png"

Expected: error

Actual: outputs the {- " " -}}

(Note: {- " " -}} is a typo for {{- " " -}}, which I'm using to break up an HTML tag's attributes across multiple lines while keeping exactly one space between attributes)

@Keats
Copy link
Owner

Keats commented Jun 21, 2021

That's a valid template though? There are no reasons it should error. I haven't checked in Django but Jinja2 does output the same thing as Tera.

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