summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gbp/deb/changelog.py2
-rw-r--r--tests/test_Changelog.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/gbp/deb/changelog.py b/gbp/deb/changelog.py
index a483b339..1866368f 100644
--- a/gbp/deb/changelog.py
+++ b/gbp/deb/changelog.py
@@ -272,7 +272,7 @@ class ChangeLog(object):
for line in msg[1:]:
print(" " + line, file=new_cl)
else:
- print(line, file=new_cl)
+ print(line, end='', file=new_cl)
os.rename("debian/changelog.bak", "debian/changelog")
def add_entry(self, msg, author=None, email=None, dch_options=[]):
diff --git a/tests/test_Changelog.py b/tests/test_Changelog.py
index 8f807ee2..a22731f1 100644
--- a/tests/test_Changelog.py
+++ b/tests/test_Changelog.py
@@ -302,6 +302,8 @@ def test_add_entry():
True
>>> 'Test add entry' in cl['Changes']
True
+ >>> cl['Changes'].split('*',1)[1]
+ ' Test add section\\n * Test add entry'
>>> os.chdir(olddir)
>>> os.path.abspath(os.path.curdir) == olddir
True