| 1 | Lemma code follows a few simple guidelines |
| 2 | 1. Indentation level is four (4) **spaces**. |
| 3 | 2. Use the one true brace (OTB) style. Since there is more than a single OTB please see the example below |
| 4 | {{{#!c++ |
| 5 | Real myFunction( const Real& myReal ) { |
| 6 | if (myReal < PI) { |
| 7 | return myReal; |
| 8 | } else { |
| 9 | return myReal/PI; |
| 10 | } |
| 11 | } |
| 12 | }}} |
| 13 | The biggest source of confusion is for functions and classes, the first brace remains on the function declaration line. |
| 14 | 3. Line endings in the official repositories are Unix style "\n". |
| 15 | 4. Vim macros are available in the vim directory of the source code. |