ENH: Removing unnecessary whitespace when formatting to a HTML table (GH4987)