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