cssinjs / jss

JSS is an authoring tool for CSS which uses JavaScript as a host language.
https://cssinjs.org
MIT License
7.07k stars 398 forks source link

[cli] css content '\a0' convert to jss is not correct #1595

Open tobemaster56 opened 2 years ago

tobemaster56 commented 2 years ago

https://sudos.tools/css-to-jss, i think this web tool use jss-cli,

image

as you see, content '\a0' represents a space, when it converts to jss, the result is "'\\\\a0'",

then, i convert jss. to css

image

css->jss '\a0' -> "'\\\\a0'" then jss->css "'\\\\a0'" ->'\\a0'

what is expected: css->jss '\a0' -> "'\\a0'" then jss->css "'\\a0'" ->'\a0'

KaanCan33 commented 2 years ago

Good idea