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

Add failing test for multiple {% raw %} blocks #502

Closed
wants to merge 1 commit into from
Closed

Add failing test for multiple {% raw %} blocks #502

wants to merge 1 commit into from

Conversation

ricordisamoa
Copy link
Contributor

No description provided.

@jlongster
Copy link
Contributor

ping @AaronO

@AaronO
Copy link
Contributor

AaronO commented Sep 1, 2015

@ricordisamoa @jlongster I'll take a look at this.

@AaronO
Copy link
Contributor

AaronO commented Sep 1, 2015

We render

{% raw %}{{ var }}{% endraw %}{{ var }}{% raw %}{{ var }}{% endraw %}

to

{{ var }}{% endraw %}{{ var }}{% raw %}{{ var }}

So we're mistakenly grabbing the outer most raw and endraw blocks.

@AaronO
Copy link
Contributor

AaronO commented Sep 1, 2015

@jlongster @ricordisamoa I've got a fix for it, my block finding regex was a bit too greedy.

I'll add a few tests and send a PR your way.

@AaronO AaronO mentioned this pull request Sep 1, 2015
@AaronO
Copy link
Contributor

AaronO commented Sep 1, 2015

@jlongster @ricordisamoa Here's my PR: #503

@carljm carljm closed this in #503 Sep 1, 2015
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

Successfully merging this pull request may close these issues.

3 participants