From 7ec2c609844d1757380fb8d7979d751e5a3c1c62 Mon Sep 17 00:00:00 2001 From: David Cramer Date: Mon, 16 May 2011 14:15:09 -0700 Subject: Correct display of text in stacktraces --- debug_toolbar/utils/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debug_toolbar/utils/__init__.py b/debug_toolbar/utils/__init__.py index aa214c9..3f035e6 100644 --- a/debug_toolbar/utils/__init__.py +++ b/debug_toolbar/utils/__init__.py @@ -36,7 +36,7 @@ def tidy_stacktrace(stack): continue if socketserver_path in s_path: continue - trace.append((path, line_no, func_name, text)) + trace.append((path, line_no, func_name, (''.join(text)).strip())) return trace def get_template_info(source, context_lines=3): -- cgit v1.2.3