A tab should be its own ASCII character. Will depend on the editor how wide it looks. If your editor converts tabs to spaces, that's also fine. It looks like it, maybe some having been converted to 4 spaces, others to 8. I'd try to keep that consistent, although excess indentation at the start of a block is not an error. But each block needs to maintain the same indentation throughout. Maybe the only real problem now is that the "if eUnit" line is one space too far to the right, if I see that correctly. The error messages (indentation error, syntax error) should also indicate which line is causing problems.
Edit: The updated version looks correct. I guess tabs being replaced by spaces was the main point of confusion.
Edit: The updated version looks correct. I guess tabs being replaced by spaces was the main point of confusion.