I use gedit and although it has a setting to convert tabs to spaces, it doesn't work. At times I might have 4 levels of nesting and TABS of 8 just doesn't look good. So I cooked this little thing together that allows SourceFile, DestinationFile and number of spaces / TAB 1 - 32.
I did get it to work. Little did I realize it doesn't work well on existing files, but once spaces are set it does as expected on a new file. The unfortunate side affect is, therein after one can't use Shift-Tab or Tab to retabulate a selected block, so I'll be leaving it at the default setting.