diff --git a/abook.py b/abook.py
index <HASH>..<HASH> 100644
--- a/abook.py
+++ b/abook.py
@@ -252,6 +252,7 @@ class Abook(object):
         filename = book.filename
         book.filename = None
         entries = book.write()
+        entries = [e for e in entries if e is not '']
         entries = [e.replace(' = ', '=', 1) for e in entries]
         entries.append('\n')
         content = '\n'.join(entries)
Remove empty lines before writing abook file

This fixes 5ee<I>, so the file does not accumulate new lines.