Message ID | 1412983246-12118-1-git-send-email-andi@firstfloor.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/scripts/cleanpatch b/scripts/cleanpatch index 9680d03..d14aac9 100755 --- a/scripts/cleanpatch +++ b/scripts/cleanpatch @@ -39,6 +39,10 @@ sub clean_space_tabs($) } elsif ($c eq " ") { $nsp++; } else { + while ($nsp >= 8) { + $lo .= "\t"; + $nsp -= 8; + } $lo .= " " x $nsp; $pos += $nsp; $nsp = 0;