Skip to content
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

Avoid index-out-of-range exception with back-to-back notes. #79

Merged
merged 1 commit into from
Jul 5, 2021

Conversation

dcdolson
Copy link

Also modified a test case.

This might fix some of the index-out-of-range issues some of your users are getting.

@@ -211,8 +211,9 @@ def __alterDocstring(self, tail='', writer=None):
match = tagRE.search(line)
if match:
# We've got a simple one-line Doxygen command
lines[-1], inCodeBlock = self._endCodeIfNeeded(
lines[-1], inCodeBlock)
if lines:
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when I debugged, lines was []

@@ -4,6 +4,8 @@

This is basically as close a copy of the Python examples in the Google
Python Style Guide as possible while still being valid code.
NOTE: this is a note
NOTE: this is also a note
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you try these changes without the fix, this will crash doxpypy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants