Add check to make sure article is in mainspace

(also normalize tabs and spaces)