From 4542d4535f4a8c2c79ae59a273c5d4fdf415a289 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 23 May 2011 14:28:05 +0000 Subject: [PATCH] minor beautification --- lib/core/dump.py | 3 +++ 1 file changed, 3 insertions(+) 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: