regro / rever

Releaser of Versions

Home Page:https://regro.github.io/rever-docs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ENH: nicely handle white space for version_bump

CJ-Wright opened this issue · comments

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?

For clarification, you mean leading whitespace? Or all whitespace?

I meant leading, although other would be ok too.

Other would be much harder.

We can fix problems as people yell about them, I am good with just leading whitespace.