Updated srcclean to remove "invisible spaces" immediately preceding

tabs. [Atari Ace]
This commit is contained in:
Aaron Giles 2009-12-28 09:01:46 +00:00
parent 93d465ad3c
commit 6763b10bf0

View File

@ -195,6 +195,14 @@ int main(int argc, char *argv[])
{
int spaces = 4 - col % 4;
/* Remove invisible spaces */
while ((spaces & 3) != 0 && dst > 0 && modified[dst-1] == ' ')
{
removed_spaces++;
spaces++;
col--;
dst--;
}
col += spaces;
/* if inside a comment, expand it */