jshint/fixmyjs

Unicode text fails

monolithed opened this issue · 2 comments

Before:

module.exports = {
       description: '\
               <ul>\
                       <li><a href="https://calendar.mail.ru/api/docs/index.html">Документация</a></li>\
                       <li><a href="https://calendar.mail.ru/api/explorer/calendar/">API Explorer</a></li>\
               </ul>\
       '
}

After:

module.exports = { description: '\t\t<ul>\t\t\t<li><a href="https://calendar.mail.ru/api/docs/index.html">\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f</a></li>\t\t\t<li><a href="https://calendar.mail.ru/api/explorer/calendar/">API Explorer</a></li>\t\t</ul>\t' };
➜ uname -a
Darwin Monolithed-2.local 13.1.0 Darwin Kernel Version 13.1.0: Thu Jan 16 19:40:37 PST 2014; root:xnu-2422.90.20~2/RELEASE_X86_64 x86_64

I'm using the latest vesion of fixmyjs (0.13.1) via grunt-fixmyjs

I don't want to break and format my code like that!

hi, monolithed, i fixed this and pull request to author , my case is '中文' ,
i am waiting for author's reply

Merged in 04ddb84