(Jul-01-2018, 02:14 PM)jimo Wrote: How do I determine the indentation in general?
(Jul-01-2018, 04:03 PM)jimo Wrote: but I am attempting to write a docstring generation tool where I would either generate docstrings from scratch or add more documentation to existing docstrings
Probably I don't understand your question/goal. The document PEP257 describes the convention of how spaces are handled. If you want to blend your text/addition into existing docstring you certainly should take this into account. Otherwise your addition will be displaced compared to the rest of the docstring
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs