added option for custom no. of indentation spaces