convert router indentation to spaces