Ah, that's what I get for copy-pasting that function; I use soft tabs as well usually.