Skip to content

Commit b3e82b0

Browse files
authored
Merge pull request #327 from infotexture/feature/update-readme
Restore xmlSelfClosingSpace description in README
2 parents 0e57ef7 + 62106b5 commit b3e82b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,14 @@ The `prettier` executable is now installed and ready for use:
4444

4545
## Configuration
4646

47-
Below are the options (from [`src/plugin.js`](src/plugin.js)) that `@prettier/plugin-xml` currently supports:
47+
Below are the options (from [`src/plugin.ts`](src/plugin.ts)) that `@prettier/plugin-xml` currently supports:
4848

4949
| API Option | CLI Option | Default | Description |
5050
| -------------------------- | ------------------------------ | :--------: | ----------------------------------------------------------------------------------------------------- |
5151
| `bracketSameLine` | `--bracket-same-line` | `true` | Same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#bracket-same-line)) |
5252
| `printWidth` | `--print-width` | `80` | Same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#print-width)). |
5353
| `tabWidth` | `--tab-width` | `2` | Same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#tab-width)). |
54+
| `xmlSelfClosingSpace` | `--xml-self-closing-space` | `true` | Adds a space before self-closing tags. |
5455
| `xmlWhitespaceSensitivity` | `--xml-whitespace-sensitivity` | `"strict"` | Options are `"strict"` and `"ignore"`. You may want `"ignore"`, [see below](#whitespace). |
5556

5657
Any of these can be added to your existing [prettier configuration

0 commit comments

Comments
 (0)