Skip to content

Commit

Permalink
Breaking change in Literate CoffeeScript: code blocks within HTML tag…
Browse files Browse the repository at this point in the history
…s must be unindented
  • Loading branch information
GeoffreyBooth committed Apr 6, 2017
1 parent b401f84 commit b8eed42
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions test/literate.litcoffee
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,12 @@ Tabs work too:
<p>

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!

</p>

test "should ignore indented sections inside HTML", ->
test "should ignore code blocks inside HTML", ->
eq executed, false
---
Expand Down
3 changes: 2 additions & 1 deletion test/literate_tabbed.litcoffee
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,12 @@ Spaces work too:
<p>

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

</p>

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

0 comments on commit b8eed42

Please sign in to comment.