diff --git a/lib/core/dump.py b/lib/core/dump.py index c05d580fc..4f9bd2058 100644 --- a/lib/core/dump.py +++ b/lib/core/dump.py @@ -66,6 +66,9 @@ class Dump: if data: data = self.__formatString(data) + if data[-1] == '\n': + data = data[:-1] + if "\n" in data: self.__write("%s:\n---\n%s\n---\n" % (header, data)) else: