Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: getBodyText() doesn't work as would be expected #1560

Merged
merged 1 commit into from
Oct 5, 2024

Conversation

jmyrick02
Copy link
Contributor

@jmyrick02 jmyrick02 commented Jul 25, 2024

Fixes #1559

The first test corresponds to the first issue mentioned in #1559, which is definitely a bug. This is addressed by the addition of the new if statement at the end of the while loop. The second test corresponds to my preferred behavior of ignoring empty lines when adjusting indentation levels. This was addressed by the modification of the condition to update the minimum indent level. If you do not believe this should be default behavior, at least an option should be provided, since I'm finding it necessary for my use case.

Please let me know if you have any thoughts.

@dsherret dsherret added this to the 24.0.0 milestone Aug 25, 2024
Copy link
Owner

@dsherret dsherret left a comment

Choose a reason for hiding this comment

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

Thanks!

@dsherret dsherret merged commit 81dc87d into dsherret:latest Oct 5, 2024
@jmyrick02
Copy link
Contributor Author

Thanks!

Thank you so much! This is my first real OSS contribution, so I appreciate this a lot. Thanks for being a maintainer.

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

Successfully merging this pull request may close these issues.

getBodyText() doesn't work as would be expected
2 participants