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

About Webucator

Webucator provides instructor-led training to students throughout the US and Canada. We have trained over 90,000 students from over 16,000 organizations on technologies such as Microsoft ASP.NET, Microsoft Office, Azure, Windows, Java, Adobe, Python, SQL, JavaScript, Angular and much more. Check out our complete course catalog.

Notice: Undefined variable: separator in D:\\www\blog\wp-content\themes\webucator\single.php on line 55