mirror of
https://github.com/holub/mame
synced 2025-05-05 22:04:43 +03:00
Updated srcclean to remove "invisible spaces" immediately preceding
tabs. [Atari Ace]
This commit is contained in:
parent
93d465ad3c
commit
6763b10bf0
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user