make tags pretty, make line breaks more consistent with original, some tidying of extra spaces etc