Skip to content

Commit

Permalink
Fix stripping of initial newline from source.
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Sep 11, 2009
1 parent 7af5573 commit b5f86e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions debug_me.py
@@ -1,3 +1,4 @@

def simple_func(x):
x += 1

Expand Down
2 changes: 1 addition & 1 deletion pudb/source_view.py
Expand Up @@ -159,7 +159,7 @@ def shipout_line():
shipout_line()

highlight("".join(l.replace("\t", 8*" ") for l in lines),
PythonLexer(), UrwidFormatter())
PythonLexer(stripnl=False), UrwidFormatter())

return result

0 comments on commit b5f86e6

Please sign in to comment.