optimization inserts whitespaces at beginning and end of function #9

Bjornej opened this Issue Oct 29, 2012 · 0 comments


None yet

1 participant

Bjornej commented Oct 29, 2012

When using requirejs-tpl with r.js the created functions insert into the produced templates whitespaces at the beginning and at the end of the result.

This can result in some nasty problems depending on your css.

To solve this problem it's sufficient to modify line 53 from

+ "');}return __p.join('');";


+ "');}return __p.join('').trim();";

Is this a bug or the intended behaviour ?

PS: Thanks for the great plugin. It is really useful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment