| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Thanks @hugovk for the PR, and @AlexWaygood for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
Sorry, something went wrong.
…thonGH-110635) Set three-space indents in EditorConfig (cherry picked from commit 66a9b10) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
|
GH-110637 is a backport of this pull request to the 3.12 branch. |
Sorry, something went wrong.
|
GH-110638 is a backport of this pull request to the 3.11 branch. |
Sorry, something went wrong.
…thonGH-110635) Set three-space indents in EditorConfig (cherry picked from commit 66a9b10) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
|
FWIW, 3 doesn't seem to be the actual indentation level used by rst; it just happens to be one of the most commonly used -- because of directives. .. directive: This text should be indented under the 'd' of directive, so 3 spaces * This is a list * nested lists must be indented under the 'T' above, so 2 spaces Some other things can be indented with any number of spaces >= 1. Setting 3 as a default is still a good idea. Note: it's actually a bit more complicated than that. For directives you can also use a different number of spaces as long as you are consistent within the block, whereas lists seems to break more easily. Depending on the combination of what you are using, how you are indenting, and the presence of empty lines between different sections, different things might happen, some of which are not reported as error and, depending on the theme used, might look ok in the final render. |
Sorry, something went wrong.
…thon#110635) Set three-space indents in EditorConfig
| Back | FazBrowse Home | New Git URL |
https://devguide.python.org/documentation/style-guide/#use-of-whitespace says:
EditorConfig is read by many editors, and there are plugins for others, so helps avoid incorrect tabs in reST files.
https://editorconfig.org/