Strange indentation behaviour

Hi all

Been having fun playing around with Sonic Pi for the first time.

Suddenly this large automatic indentation started happening:

Any idea why this is happening and how to stop it? It doesn’t seem to have a relationship with any previous lines.

I have tried in checking ‘auto-align’ to tab manually but the same thing happens.

Thanks

There was a * operator without spaces around it earlier in the code: fixing this fixed the indentation.
Why this should be is a mystery to me, but problem solved anyway.

Try checking a few lines directly above 23… if you’ve missed a closing item somewhere in them,
often it throws the lines below out of alignment.

Eli…