mirror of
https://github.com/StevenBlack/hosts.git
synced 2026-11-15 15:18:01 +00:00
Issue #77: fix - replace tabs with space.
This commit is contained in:
1 parent
d69aa1add3
commit
a4b254d1cf
1 file changed
+2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user