From 7c220b9af5a904f99a4d58db11afe24a8beda9d0 Mon Sep 17 00:00:00 2001 From: kpdecker Date: Sun, 2 Nov 2014 12:09:37 -0600 Subject: [PATCH] Add test for whitespace control w/ partial indent Verifies the behaviors discussed in #858 --- spec/whitespace-control.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec/whitespace-control.js b/spec/whitespace-control.js index 86364292..cce9405d 100644 --- a/spec/whitespace-control.js +++ b/spec/whitespace-control.js @@ -66,6 +66,9 @@ describe('whitespace control', function() { shouldCompileToWithPartials('foo {{~> dude~}} ', [{}, {}, {dude: 'bar'}], true, 'foobar'); shouldCompileToWithPartials('foo {{> dude~}} ', [{}, {}, {dude: 'bar'}], true, 'foo bar'); shouldCompileToWithPartials('foo {{> dude}} ', [{}, {}, {dude: 'bar'}], true, 'foo bar '); + + shouldCompileToWithPartials('foo\n {{~> dude}} ', [{}, {}, {dude: 'bar'}], true, 'foobar'); + shouldCompileToWithPartials('foo\n {{> dude}} ', [{}, {}, {dude: 'bar'}], true, 'foo\n bar'); }); it('should only strip whitespace once', function() {