LicensesDialog-29 Improve NoticesHtmlBuilder speed

- also fixed formatting