From b5f86e66be5919115201abf32d5b6077f96f2995 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Fri, 11 Sep 2009 09:50:00 -0400 Subject: [PATCH] Fix stripping of initial newline from source. --- debug_me.py | 1 + pudb/source_view.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/debug_me.py b/debug_me.py index d7c6577..635b087 100644 --- a/debug_me.py +++ b/debug_me.py @@ -1,3 +1,4 @@ + def simple_func(x): x += 1 diff --git a/pudb/source_view.py b/pudb/source_view.py index d077ec3..bb78539 100644 --- a/pudb/source_view.py +++ b/pudb/source_view.py @@ -159,7 +159,7 @@ def format_source(debugger_ui, lines, breakpoints): shipout_line() highlight("".join(l.replace("\t", 8*" ") for l in lines), - PythonLexer(), UrwidFormatter()) + PythonLexer(stripnl=False), UrwidFormatter()) return result