Fix formatting of unusual unit bases.