be more careful about whitespace when tidying html