swc/crates/swc_xml_codegen
Cong-Cong Pan 769d6516a5
fix(xml/codegen): Fix wrong minification of spaces in a self-closing tag (#7595)
**Description:**

xml codegen with option `minify: true`.

input:
```xml
<foo attributeName="OK" />
```

expected:
```xml
<foo attributeName="OK"/>
```

actual:

```xml
<foo attributeName="OK" />
```

---

We already escape the attribute value in `escape_string` function, so we
do not need to check whether it contains a specific string.
2023-06-29 06:11:34 +00:00
..
src fix(xml/codegen): Fix wrong minification of spaces in a self-closing tag (#7595) 2023-06-29 06:11:34 +00:00
tests fix(xml/codegen): Fix wrong minification of spaces in a self-closing tag (#7595) 2023-06-29 06:11:34 +00:00
Cargo.toml chore: Publish crates 2023-06-23 02:28:10 +00:00