Tidying up tabs and a dangling </tr> tag