diff options
-rw-r--r-- | src/tools/srcclean.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tools/srcclean.c b/src/tools/srcclean.c index fa10f7e1abb..8ae39181a57 100644 --- a/src/tools/srcclean.c +++ b/src/tools/srcclean.c @@ -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 */ |