One of the new features in SCOM 2019 and later is HTML based emails.
This is great – because they are much more attractive and configurable over the previous plain text.
SCOM 2016 and earlier alerts:
Has plain text email like this:
This same email in SCOM 2019 and later:
Looks great right???
A big complaint here is that the Alert Description now shows up as one big blob of text, in HTML format. The line breaks are not honored and this is very hard to read.
The cool thing about HTML, is that you have a LOT of control over how things are presented visually, and the SCOM HTML supports CSS controls.
A simple change the in the SCOM Notification Channel from this line:
<b>Alert description:</b> $Data[Default='Not Present']/Context/DataItem/AlertDescription$<br />
<div style="white-space: pre"><b>Alert description:</b> $Data[Default='Not Present']/Context/DataItem/AlertDescription$<br /></div>
and our emails will format exactly as they are seen in the console: