millermedeiros / esformatter

ECMAScript code beautifier/formatter
MIT License
970 stars 91 forks source link

\n replaced with a new line in template literals #418

Closed Mario54 closed 8 years ago

Mario54 commented 8 years ago

Whenever I use esformatter to format something like this:

console.log(`\n`);

the text is transformed into

console.log(`
`);

I searched for rules that would lead to this behaviour, but couldn't find any. Is there a way to prevent that from happening?

millermedeiros commented 8 years ago

duplicate of https://github.com/millermedeiros/esformatter/issues/414 - it's a Babel issue, let's hope they fix it soon: https://phabricator.babeljs.io/T6833