summaryrefslogtreecommitdiff
path: root/paste/exceptions
diff options
context:
space:
mode:
authorianb <devnull@localhost>2006-02-22 18:50:49 +0000
committerianb <devnull@localhost>2006-02-22 18:50:49 +0000
commitb6ef4438942e31328c27bd9a9ddee6a3ba7fc29b (patch)
tree5dc0315223ef4bb634a0760c7ef370741dfff1d9 /paste/exceptions
parentc289cd363cf083e4d153a985ecfbea2358a1262f (diff)
downloadpaste-b6ef4438942e31328c27bd9a9ddee6a3ba7fc29b.tar.gz
Improve formatting of the text version, so things don't get crammed together as much
Diffstat (limited to 'paste/exceptions')
-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)):