Open dochang opened 8 years ago
This looks similar to #103, right ? I mean, the underlying issue seems to be the lack of proper multi-line support in parameters of bumpversion's own configuration blocks. There's probably a textwrap()
to add somewhere in bumpversion config parsing.
Yes, RawConfigParser
in py2 doesn't recognize empty lines in multiple lines.
Instead of wrapping RawConfigParser
, shall we switch to another parser, e.g., a toml parser?
It happens to me too.
The fact that you can use to drop directly the changelog the multiline with blank lines is mandatory for md and rst formats.
Heh, came here for exactly the same reason, trying to add my CHANGELOG release into versionbump...
Has anyone figured out a way to get that extra newline in there between the unreleased and the release?
Just in case this is helpful to someone that finds this:
rst
instead of md
..bumpversion.cfg
instead of setup.cfg
if you plan on building in python 3
It seems that bumpversion doesn't work with multiline string.
Here is my
CHANGELOG.md
:And here is my
.bumpversion.cfg
:After running bumpversion, the expected changelog is:
But the actual content is:
And
.bumpversion.cfg
is changed:Bumpversion removes the empty line.
How to replace current version with multiline string?