Open ryo-manba opened 3 weeks ago
When using the loseless: true option trailing spaces are removed unexpectedly, even though should be preserved.
loseless: true
Related to https://github.com/stylelint/stylelint/pull/8074#discussion_r1817680694
const parser = require('postcss-selector-parser'); const selector = ':not(a, )'; console.log('selector:', selector); parser((selectors) => { console.log('parsed:', selectors.toString()); }) .process(selector, { lossless: true })
selector: :not(a, ) parsed: :not(a, )
selector: :not(a, ) parsed: :not(a,)
@ryo-manba pr welcome
When using the
loseless: true
option trailing spaces are removed unexpectedly, even though should be preserved.Related to https://github.com/stylelint/stylelint/pull/8074#discussion_r1817680694
Code to Reproduce
Expected
Actual