From b8eed42cc9a21036f6c6a17ee3fa9e2b91937642 Mon Sep 17 00:00:00 2001 From: Geoffrey Booth Date: Wed, 5 Apr 2017 19:48:41 -0700 Subject: [PATCH] Breaking change in Literate CoffeeScript: code blocks within HTML tags must be unindented --- test/literate.litcoffee | 5 +++-- test/literate_tabbed.litcoffee | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/test/literate.litcoffee b/test/literate.litcoffee index 4eb1831498..5b0de9d7d0 100644 --- a/test/literate.litcoffee +++ b/test/literate.litcoffee @@ -62,11 +62,12 @@ Tabs work too:

- executed = true # should not execute, this is just HTML para, not code! +if true + executed = true # should not execute, this is just HTML para, not code!

- test "should ignore indented sections inside HTML", -> + test "should ignore code blocks inside HTML", -> eq executed, false --- diff --git a/test/literate_tabbed.litcoffee b/test/literate_tabbed.litcoffee index 246e6a2f40..a460a829f5 100644 --- a/test/literate_tabbed.litcoffee +++ b/test/literate_tabbed.litcoffee @@ -62,11 +62,12 @@ Spaces work too:

+if true executed = true # should not execute, this is just HTML para, not code!

- test "should ignore indented sections inside HTML", -> + test "should ignore code blocks inside HTML", -> eq executed, false ---