einars/js-beautify — Issue #94: Wrong String concatenation
Author: wisec
Created: 2012-02-09 10:37:14+00:00
State: open

The following strings:

"use strict"
"cc"
become:
"use strict""cc"
Which obviously breaks the grammar.

Another test case:
var test = 'a String'+
'another concat '
'This is not concat with the prev '+
'';

Becomes
var test = 'a String' + 'another concat ''This is not concat with the prev ' + '';

Would it be possible to not let JSBeautifier to keep new lines in those cases?

Thanks and keep up!