Webucator Blog

Converting Leading Tabs to Spaces with Python

Here’s a little Python script I wrote for converting leading tabs to spaces (two spaces per tab). We used this to make the indenting in all of our ColdFusion files consistent.

Be careful with it as you could lose a lot of content very fast! Make sure your original content is backed up!


Related Training: Python