diff options
author | Per Øyvind Karlsen <proyvind@moondrake.org> | 2016-06-03 18:30:10 +0200 |
---|---|---|
committer | Per Øyvind Karlsen <proyvind@moondrake.org> | 2016-06-03 18:30:10 +0200 |
commit | 740baf4476c71982670a773e84513cdfe71886dd (patch) | |
tree | 88c2b61e1522e926601b61f2570d96a09852ddb1 | |
parent | cf136b42df64fb7e3d347773c76291e4ce2b7abc (diff) | |
download | mgarepo-740baf4476c71982670a773e84513cdfe71886dd.tar mgarepo-740baf4476c71982670a773e84513cdfe71886dd.tar.gz mgarepo-740baf4476c71982670a773e84513cdfe71886dd.tar.bz2 mgarepo-740baf4476c71982670a773e84513cdfe71886dd.tar.xz mgarepo-740baf4476c71982670a773e84513cdfe71886dd.zip |
avoid trailing newline after last %changelog entry
-rw-r--r-- | MgaRepo/log.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/MgaRepo/log.py b/MgaRepo/log.py index 84ed5cc..d7ad511 100644 --- a/MgaRepo/log.py +++ b/MgaRepo/log.py @@ -308,7 +308,8 @@ def dump_file(releases, currentlog=None, template=None): first = False else: draft = draft + spaces + line + "\n" - draft += '\n' + if rel is not releases_author[-1]: + draft += "\n" else: # default template if not releases_author[-1].visible: @@ -331,7 +332,8 @@ def dump_file(releases, currentlog=None, template=None): for rev in author.revisions: for line in rev.lines: draft = draft + line + "\n" - draft += "\n" + if rel is not releases_author[-1]: + draft += "\n" return draft class InvalidEntryError(Exception): |