Well, the one you posted originally used underscores, which adds lineheight, and that might be the space you're referring to. The ones I posted use bottom border for the existing table, which should have resolved the problem. The coding itself looks fine to me; if the line breaks are cumbersome, you can enclose the whole thing in and work out the breaks manually.