Was making a small example update and ran into inconsistent formatting. Since the main README.md clearly specifies "KNF with tabs" as the style, I think it is appropriate to fix the formatting where it differs.
I wasn't able to get the correct formatting using the indent command mentioned in the readme. Have tried both indent on macOS and indent on Ubuntu 20.04. The options given in the readme produced completely different formatting. I'm not familiar enough with indent to find the issue, though.
Instead I have formatted with Astyle 3.1, using the following options: --style=knf --indent=tab. This seems to be produce overall the same formatting as in the repository right now, except for the changes here: spaces to tabs, an un-indented cases.
Was making a small example update and ran into inconsistent formatting. Since the main README.md clearly specifies "KNF with tabs" as the style, I think it is appropriate to fix the formatting where it differs.
I wasn't able to get the correct formatting using the
indent
command mentioned in the readme. Have tried bothindent
on macOS andindent
on Ubuntu 20.04. The options given in the readme produced completely different formatting. I'm not familiar enough withindent
to find the issue, though.Instead I have formatted with Astyle 3.1, using the following options:
--style=knf --indent=tab
. This seems to be produce overall the same formatting as in the repository right now, except for the changes here: spaces to tabs, an un-indentedcase
s.