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

Multi-line replace doesn't work for lines starting with # #235

Open
Penacillin opened this issue Sep 30, 2021 · 2 comments · May be fixed by #261
Open

Multi-line replace doesn't work for lines starting with # #235

Penacillin opened this issue Sep 30, 2021 · 2 comments · May be fixed by #261
Labels

Comments

@Penacillin
Copy link

NOTE: This is a duplicate of peritus/bumpversion#199 . Just adding this here since that's not maintained anymore.

Wanted to bring that same issue up here, as it still seems relevant

@florisla florisla added the bug label Oct 15, 2021
@kdeldycke
Copy link
Contributor

Here is how it might be fixed using a custom parser as in ConfigParser(interpolation=ExtendedInterpolation()): https://docs.python.org/3/library/configparser.html?highlight=configfile#customizing-parser-behaviour

@sanderr
Copy link

sanderr commented Oct 26, 2022

If I understand correctly, there is actually already a workaround for this, though it is not documented yet. I added documentation in #261, which is still in review.

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

Successfully merging a pull request may close this issue.

4 participants