Skip to content

Commit 742069a

Browse files
authored
Add EditorConfig section for rst files (#2273)
## Summary Add a section for `*.rst` files for EditorConfig. ## Additional background When editing the Sphinx `rst` source files for AmrLevel (PR #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.
1 parent 83de032 commit 742069a

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.editorconfig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,23 @@ insert_final_newline = true
2626
trim_trailing_whitespace = false
2727

2828

29+
[*.rst]
30+
# Enforce UTF-8 encoding
31+
charset = utf-8
32+
33+
# Unix-style newlines
34+
end_of_line = lf
35+
36+
# Newline ending in files
37+
insert_final_newline = true
38+
39+
# 3 space indentation
40+
indent_style = space
41+
indent_size = 3
42+
43+
# Clean up trailing whitespace
44+
trim_trailing_whitespace = true
45+
2946
[Makefile]
3047
# TABs are part of its syntax
3148
indent_style = tab

0 commit comments

Comments
 (0)