FormidableLabs / css-to-radium

Radium migration CLI, converts CSS to Radium-compatible JS objects.
MIT License
79 stars 5 forks source link

Newlines not handled properly #3

Closed bbirand closed 9 years ago

bbirand commented 9 years ago

Hi,

When there are newlines in the original CSS, they are not properly escaped in the produced Javascript. For instance, this snippet:

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
  display: block;
}

becomes

  'article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary': {
    display: 'block'
  }