From 2437a776c603d2030078cdf79741ef8b5d31a9a5 Mon Sep 17 00:00:00 2001 From: Jean Carlos Rodriguez Cedeno Date: Thu, 21 Feb 2019 15:57:48 -0500 Subject: [PATCH] added preventIndent to hbs.compile (#58) * addded preventIndent to hbs.compile * some spaces * added some spaces * end space --- lib/setup.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/setup.js b/lib/setup.js index 2a46b9c..b1ad0be 100644 --- a/lib/setup.js +++ b/lib/setup.js @@ -65,7 +65,9 @@ function registerPartials(items) { // Compile all the loaded partials _.forIn(hbs.partials, function (value, key) { if (_.isString(value)) { - hbs.partials[key] = hbs.compile(value); + // preventIndent:true solve issue with
 tag/white-space: pre
+      // see http://handlebarsjs.com/reference.html compile() options
+      hbs.partials[key] = hbs.compile(value, { preventIndent: true });
     }
   });