Fix whitespace control to correctly handle tabs