csscomb.js icon indicating copy to clipboard operation
csscomb.js copied to clipboard

Converting quotes breaks escape sequences on "content" property

Open joaocunha opened this issue 10 years ago • 4 comments

Using Sublime Text plugin, but I assume it's a lib parsing issue.

.foo {
  content: "\\";
}

Is comb'ed to:

.foo {
  content: '\';
}

It should keep the double backslash instead. On the other hand, combing content: "\#"; works just fine.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

joaocunha avatar Feb 17 '15 14:02 joaocunha

It breaks the quotes attribute, too:

Source:

.foo {
  quotes: " ";
}

Becomes:

.foo {
  quotes: '' '';
}

joaocunha avatar Feb 24 '15 00:02 joaocunha

@joaocunha, do you still have trouble with this issue?

tonyganch avatar Jun 09 '15 21:06 tonyganch

@tonyganch I'm not working on the same project anymore. Back then I fixed it manually.

It's pretty easy to test, tho.

joaocunha avatar Jun 09 '15 21:06 joaocunha

@tonyganch first issue is still there ("\\"). The second one seems to be fixed (" ").

joaocunha avatar Sep 18 '15 22:09 joaocunha