Convert template tabs to spaces so they are rendered correctly