auto-detect indent