aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--debug_toolbar/utils/__init__.py2
1 files changed, 1 insertions, 1 deletions
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):