Self Close Space
Whether markup self-closing (void) tags should apply a single space to ending portion of the delimiter which results in the tag output to produce ' />' instead of '/>'.
🙌
true
When the markup selfCloseSpace rule is enabled (i.e: true) then forward slash closing delimiters will insert a single space character.
- default
- recommended
- warrington
- strict
- prettier
<!-- Before formatting -->
<picture>
<path srcset="."/>
<path srcset="."/>
</picture>
<!-- After Formatting - Notice the the space insertion applied -->
<picture>
<path srcset="."/>
<path srcset="."/>
</picture>
<!-- Before formatting -->
<picture>
<path srcset="." />
<path srcset="." />
</picture>
<!-- After Formatting - Notice the the space insertion applied -->
<picture>
<path srcset="." />
<path srcset="." />
</picture>👎
false
When the markup selfCloseSpace rule is disabled (i.e: false) then forward slash closing delimiters will strip leading spaces.
- default
- recommended
- warrington
- strict
- prettier
<!-- Before formatting -->
<picture>
<path srcset="." />
<path srcset="." />
</picture>
<!-- After Formatting - Notice the the space insertion applied -->
<picture>
<path srcset="." />
<path srcset="." />
</picture>
<!-- Before formatting -->
<picture>
<path srcset="."/>
<path srcset="."/>
</picture>
<!-- After Formatting - Notice the the space insertion applied -->
<picture>
<path srcset="."/>
<path srcset="."/>
</picture>