regro / rever

Releaser of Versions
https://regro.github.io/rever-docs/
BSD 3-Clause "New" or "Revised" License
74 stars 34 forks source link

ENH: nicely handle white space for version_bump #50

Closed CJ-Wright closed 6 years ago

CJ-Wright commented 7 years ago

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?

scopatz commented 6 years ago

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

CJ-Wright commented 6 years ago

I meant leading, although other would be ok too.

scopatz commented 6 years ago

Other would be much harder.

CJ-Wright commented 6 years ago

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