Strips blank lines at the end of Entry bodies when prettyprinting.

This commit is contained in:
Manuel Ebert 2012-05-31 11:37:02 +02:00
parent 7a8b847bd7
commit a4e6831548

View file

@ -40,7 +40,7 @@ class Entry:
initial_indent="| ", initial_indent="| ",
subsequent_indent="| ", subsequent_indent="| ",
drop_whitespace=False) drop_whitespace=False)
for line in self.body.splitlines() for line in self.body.strip().splitlines()
]) ])
else: else:
title = date_str + " " + self.title title = date_str + " " + self.title