mirror of
https://github.com/holub/mame
synced 2025-07-05 18:08:04 +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;
|
int spaces = 4 - col % 4;
|
||||||
|
|
||||||
|
/* Remove invisible spaces */
|
||||||
|
while ((spaces & 3) != 0 && dst > 0 && modified[dst-1] == ' ')
|
||||||
|
{
|
||||||
|
removed_spaces++;
|
||||||
|
spaces++;
|
||||||
|
col--;
|
||||||
|
dst--;
|
||||||
|
}
|
||||||
col += spaces;
|
col += spaces;
|
||||||
|
|
||||||
/* if inside a comment, expand it */
|
/* if inside a comment, expand it */
|
||||||
|
Loading…
Reference in New Issue
Block a user