swc/crates/swc_xml_codegen/src
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
..
writer feat(api/rust): Implement more traits for public types (#5488) 2022-08-17 06:43:32 +00:00
ctx.rs feat(xml): Add xml crates (#5329) 2022-08-01 03:56:12 +00:00
emit.rs feat(xml): Add xml crates (#5329) 2022-08-01 03:56:12 +00:00
lib.rs fix(xml/codegen): Fix wrong minification of spaces in a self-closing tag (#7595) 2023-06-29 06:11:34 +00:00
list.rs refactor(common): Remove add_bitflags and update bitflags (#7571) 2023-06-23 11:26:22 +09:00
macros.rs fix(xml/parser): Fix parsing of pi (#6450) 2022-11-16 04:10:02 +00:00