Coalesce consecutive hash runs of identical colour into a single opening...

... and closing span element