... | ... | @@ -17,6 +17,7 @@ |
|
|
1. [Indentation](#1-indentation)
|
|
|
2. [One statement per line](#2-one-statement-per-line)
|
|
|
3. [Line Length](#3-line-length)
|
|
|
4. [Empty Line Padding](#4-empty-line-padding)
|
|
|
|
|
|
----
|
|
|
|
... | ... | @@ -57,3 +58,19 @@ Most of modern screens are wide. |
|
|
The limit on the length of lines is **200 columns**.
|
|
|
|
|
|
Don't leave whitespace at the end of lines.
|
|
|
|
|
|
# 4. Empty Line Padding #
|
|
|
|
|
|
Pad with one single empty line around header blocks.
|
|
|
|
|
|
```c
|
|
|
isFoo = true;
|
|
|
|
|
|
if (isFoo) {
|
|
|
bar();
|
|
|
} else {
|
|
|
anotherBar();
|
|
|
}
|
|
|
|
|
|
isBar = false;
|
|
|
``` |
|
|
\ No newline at end of file |