ENH: nicely handle white space for version_bump
CJ-Wright opened this issue · comments
Christopher J. 'CJ' Wright commented
It is very possible that we will want to have whitespace in the version replacement (eg it's in an indented block (setup.py?)). Currently this white space must be hard coded into the rever.xsh
file (see rever's file for an example). This is rather inelegant and could cause tons of problems. Would it be possible to keep track of this white space and maintain it upon replacement?
Anthony Scopatz commented
For clarification, you mean leading whitespace? Or all whitespace?
Christopher J. 'CJ' Wright commented
I meant leading, although other would be ok too.
Anthony Scopatz commented
Other would be much harder.
Christopher J. 'CJ' Wright commented
We can fix problems as people yell about them, I am good with just leading whitespace.