Skip to content

Commit

Permalink
Add EditorConfig section for rst files (AMReX-Codes#2273)
Browse files Browse the repository at this point in the history
## Summary
Add a section for `*.rst` files for EditorConfig.

## Additional background
When editing the Sphinx `rst` source files for AmrLevel (PR AMReX-Codes#2268), I found out that the root `.editorconfig` file doesn't have a section for `rst` files. This PR adds that section, roughly based on the guidelines at https://docs.typo3.org/m/typo3/docs-how-to-document/master/en-us/GeneralConventions/CodingGuidelines.html .
Note that I haven't gauged the "disruption" from whitespace changes that might be caused by this PR.
  • Loading branch information
wyphan authored Aug 25, 2021
1 parent 83de032 commit 742069a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,23 @@ insert_final_newline = true
trim_trailing_whitespace = false


[*.rst]
# Enforce UTF-8 encoding
charset = utf-8

# Unix-style newlines
end_of_line = lf

# Newline ending in files
insert_final_newline = true

# 3 space indentation
indent_style = space
indent_size = 3

# Clean up trailing whitespace
trim_trailing_whitespace = true

[Makefile]
# TABs are part of its syntax
indent_style = tab
Expand Down

0 comments on commit 742069a

Please sign in to comment.