convert indentation to spaces for readability