Issue #77: fix - replace tabs with space.
authorSteven Black <redacted>
Mon, 15 Feb 2016 17:36:38 +0000 (12:36 -0500)
committerSteven Black <redacted>
Mon, 15 Feb 2016 17:36:38 +0000 (12:36 -0500)
updateHostsFile.py

index 358eda58cbef15036b85b64052c7628bf56c3931..308f4704bbde9831ee6efe3b5ccf27598fcdeb62 100644 (file)
@@ -251,6 +251,8 @@ def removeDupsAndExcl(mergeFile):
         write = 'true'
         # Explicit encoding
         line = line.decode("UTF-8")
+        # replace tabs with space
+        line = line.replace('\t+', ' ')
         # Testing the first character doesn't require startswith
         if line[0] == '#' or re.match(r'^\s*$', line[0]):
             # Cross-python write
git clone https://git.99rst.org/PROJECT