convert indent to spaces