Convert tabs to spaces in template