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

Need better documentation on multiline support for search and replace #217

Open
fvosburgh opened this issue Mar 15, 2022 · 0 comments
Open

Comments

@fvosburgh
Copy link

I am attempting to perform version bumps against a maven project with a pom.xml file that has the project version and dependency versions. Sometimes, the project version will match up with the dependency version, and bumpversion will bump them both. The documentation clearly states that search and replace exist for this specific use case, however the Python format string documentation doesn't give me any information, as far as I can tell, to help me determine how to implement multi-line search and replace blocks. I've tried the following:

search = ""my
multiline
string""

search = my\nmultline\nstring

search = my{\n}multiline{\n}string

search = my
multiline
string

None of which have worked. It would be extremely helpful if the authors could create an example implementation of using search and replace with multiline strings.

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

No branches or pull requests

1 participant