fixes #8233 - better HTML formatting for summary email

extract, and same comments as in https://github.com/theforeman/foreman/pull/1893/files#r20146656