bahmutov / lazy-ass

Lazy node assertions without performance penalty
http://glebbahmutov.com/lazy-ass/
MIT License
68 stars 5 forks source link

When stringifying do not add space after newline #17

Closed bahmutov closed 8 years ago

bahmutov commented 8 years ago

if previous token ends with newline, do not add space. For example

la(false, 'this is', 'ok');
// "this is ok"
// but
la(false, 'this is\n', 'ok');
/* should be
this is
ok
*/
// and not
/*
this is
 ok
*/