cssinjs / cssinjs/jss

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

Open
#1,595 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.1k
Forks
386
PR merge metrics
No merged PRs in 30d

Description

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

![image](https://user-images.githubusercontent.com/8998761/150495668-67381cc8-94a4-491d-9208-49c7307dc251.png)

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

then, i convert jss. to css

![image](https://user-images.githubusercontent.com/8998761/150500425-8fe35c2d-0a1d-4a94-ae90-85e93e328802.png)

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

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.