<pedantry> Generally speaking, there are two standard ways to format dashes in English:
- Endash with space: "then he – Jim – went to the store"
- Emdash with no space, or hair space: "then he—Jim—went to the store"
Wikipedia, for example, allows either of these two options, but not what the new Code of Conduct has – spaced emdashes:
Be kind and friendly.
Avoid sarcasm and be careful with jokes — tone is hard to decipher online. If a situation makes it hard to be friendly, stop participating and move on.
For what it's worth, it seems that SE tends to prefer spaced endashes (for example, here), though, to be fair, there are many examples of spaced hyphens and spaced double-hypens to be found in the help pages as well (yuck!).
Please switch to either spaced endashes or unspaced emdashes.