For some reason in most cases the indent for the first 2 lines of code examples were space indented while the 3rd line was tab indented which resulted in excessive indentation for the 3rd line when rendered.
Replaced tabs with spaces in these and a couple of other cases.