Commit 4d8437f
authored
fix: preserve whitespace before a
The `*` branch of the attribute parser stored the raw leading whitespace
from `spaceBefore`, but that variable had just been cleared a few lines
above, so `raws.spaces.attribute.before` became empty and `[ *|a ]`
round-tripped to `[*|a ]`. The word-namespace branch already uses
`commentBefore` here; do the same for `*`.* namespace in attribute selectors (#325)1 parent e2f9029 commit 4d8437f
2 files changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
31 | 38 | | |
32 | 39 | | |
33 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
| 231 | + | |
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
| |||
0 commit comments