arduino-libraries / SD

SD Library for Arduino
http://arduino.cc/
GNU General Public License v3.0
179 stars 155 forks source link

Format demo code in reference #117

Closed per1234 closed 2 years ago

per1234 commented 2 years ago

Some of the library reference pages provide code demonstrating usage. In some places, this code had a very odd formatting where the first indent was three spaces, followed by the standard two space indent for the rest. This made the structure of the code difficult to follow and also results in an unexpected diff when the user runs the formatter on the code in Arduino IDE or Web Editor. It also makes it unfriendly to contributors.

All code in the reference is hereby formatted to be compliant with the Arduino IDE 2.x auto formatter (which uses a configuration equivalent that of the formatters in Arduino IDE 1.x and Arduino Web Editor).