fix a bug with autoindent caused by an incorrect implementation of gb_leadingSpaces