Skip to content

Commit

Permalink
Switch from tabs to spaces for indentation
Browse files Browse the repository at this point in the history
The reason for this is mostly that the previous approach of with
tabstop=8 shiftwidth=4 isn't supported in modern editors.

Spaces solves this.
  • Loading branch information
cotillion committed Nov 18, 2023
1 parent 295861e commit 13ed187
Show file tree
Hide file tree
Showing 89 changed files with 14,565 additions and 14,556 deletions.
7 changes: 7 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
root = true

[*.{c,h,y}]
indent_size = 4
indent_style = space
trim_trailing_whitespace = true
insert_final_newline = true
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.c text diff=cpp whitespace=trailing-space,space-before-tab,tab-in-indent
*.h text diff=cpp whitespace=trailing-space,space-before-tab,tab-in-indent
Loading

0 comments on commit 13ed187

Please sign in to comment.