summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--paste/exceptions/formatter.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/paste/exceptions/formatter.py b/paste/exceptions/formatter.py
index 94ec90f..2c314b0 100644
--- a/paste/exceptions/formatter.py
+++ b/paste/exceptions/formatter.py
@@ -211,7 +211,7 @@ class TextFormatter(AbstractFormatter):
else:
return '%s: %s' % (title, s)
elif isinstance(value, dict):
- lines = [title, '-'*len(title)]
+ lines = ['\n', title, '-'*len(title)]
items = value.items()
items.sort()
for n, v in items:
@@ -219,7 +219,7 @@ class TextFormatter(AbstractFormatter):
v = repr(v)
except Exception, e:
v = 'Cannot display: %s' % e
- lines.append('%s: %s' % (n, v))
+ lines.append(' %s: %s' % (n, v))
return '\n'.join(lines)
elif (isinstance(value, (list, tuple))
and self.long_item_list(value)):