Books you have read have told you to use spaces after emdash? Mostly in writing we do not use spaces even though there is no fixed rule as such.
https://www.merriam-webster.com/grammar/em-dash-en-dash-how-...And yes you cannot care about grammar that is fine but calling someone a personal insult because they pointed out something impersonal in your comment is not ideal also and is unusually catty.