Description
Tools > Auto Format in the Arduino IDE has established a standard of formatting for all Arduino sketches. It's important to teach beginners to be consistent in whatever code formatting style they choose. Unfortunately Arduino's example code doesn't always follow their own standard.
I recommend using the "examples_formatter" script, or the Arduino IDE's Tools > Auto Format configured with the examples_formatter.conf file on all example code in the Arduino reference pages.