The 1st block gets an indentation but not the 2nd?

Please read the pinned thread to understand how to do the code formatting properly, and see if you can edit the previous posts to fix them.