justjohn/twig.js — pull request #79 by m-abs (2013-04-26 21:52:19+00:00)
Title: Newline in string literals weren't handled properly. 

The first fix resulting from testing with Twig's original test cases:

From Twig/test/Twig/Tests/Fixtures/filters/nl2br.test:
{{ "I like Twig.\nYou will like it too.\n\nEverybody like it!"|nl2br }}

Should have become:
You will like it too.

Everybody like it!

But was:
I like Twig.\nYou will like it too.\n\nEverybody like it!

This is because newlines were escaped in string literals like that, this
patch handle those as well