minor beautification

This commit is contained in:
Miroslav Stampar 2011-05-23 14:28:05 +00:00
parent 31b48ec11c
commit 4542d4535f

View File

@ -66,6 +66,9 @@ class Dump:
if data: if data:
data = self.__formatString(data) data = self.__formatString(data)
if data[-1] == '\n':
data = data[:-1]
if "\n" in data: if "\n" in data:
self.__write("%s:\n---\n%s\n---\n" % (header, data)) self.__write("%s:\n---\n%s\n---\n" % (header, data))
else: else: