-
-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python DogeGenerate documentation indentation #85
Comments
This bug has been fixed and released in v2.2.9. Feel free to submit any new issues if you experience any unwanted behavior in the future. Thanks for your contribution. |
@kkoomen |
@l00sed Indentation is based on |
@kkoomen Yes, sorry if I was unclear, it also seems to use 2 spaces with tabstop set to 4: |
@kkoomen Ah, okay, nvm. Setting sw=4 and ts=4 fixes the issue. |
Describe the bug
DogeGenerate
does not adapt to function indentation when next line is empty in python.Calling
:DogeGenerate
on a function will generate the (correct) string documentation with (sometimes incorrect) zero indentation. This seems to only happen if the next line is empty --- If the next line contains code with the correct indentation then Doge works as expectedSettings
None. Reproducible with zero modifications.
To Reproduce
test.py
::DogeGenerate <CR>
Expected behavior
I expect the result (instead of step 4.) to be
Screenshots
Initial situation:
Result:
Expected:
The text was updated successfully, but these errors were encountered: