plugin-xml icon indicating copy to clipboard operation
plugin-xml copied to clipboard

Prettier XML plugin

Results 17 plugin-xml issues
Sort by recently updated
recently updated
newest added

I'm reopening this issue #138 . I'm suggesting a new option (`preserveSignificantWhitespace: true/false`) to preserve "Significant Whitespace" within XML element and attributes. (As shown by the green spaces in the...

Fixes [#478](https://github.com/prettier/plugin-xml/issues/478) Add new option `preserveSignificantWhitespace`, to preserve significant whitespace within XML elements. This PR should address all the cases where significant white space exists. Specifically: - spaces within string...

### bracketSameLine _No response_ ### printWidth _No response_ ### tabWidth _No response_ ### xmlWhitespaceSensitivity strict ### xmlSelfClosingSpace _No response_ ### Input XML ```xml ``` ### Current output XML ```xml [error]...

Export the types so that they can be checked with IDE and TypeScript.

Hi, I've encountered an issue with the plugin where text content is split around entities. It seems the formatter split's the content of `p` around the `<` entity. Input (test.xml):...

In XML, only `\t`, `\n`, `\r`, and ` ` are considered [whitespace](https://www.w3.org/TR/xml/#NT-S) and are affected by the [`xml:space` attribute](https://www.w3.org/TR/xml/#sec-white-space). However, when formatting an XML document with the `xmlWhitespaceSensitivity` option set...

Hi, is this the expected Prettier indentation result? ![grafik](https://github.com/prettier/plugin-xml/assets/3266567/ef19238c-ba4c-4e6f-9cbb-68bd6ea29c5d) I would have expected instead of this: ```xml ``` Something like this: ```xml ```

There are some situations (Salesforce metadata) where the metadata should not self-close: This is the desired XML: ```xml ``` but the plugin auto-closes it to ```xml ``` I realize that...

According to the XML specification, only `\t`, `\n`, `\r`, and ` ` (space character) are considered [whitespace](https://www.w3.org/TR/xml/#NT-S) and are affected by the [`xml:space` attribute](https://www.w3.org/TR/xml/#sec-white-space). As it has been already raised...

Applies to version 3.3.1 to up to latest (3.4.1). Not reproducible in 3.3.0. When using the plugin to format xml content using prettier, the result content ends up with non-existing...