Fix stripping of initial newline from source.

This commit is contained in:
Andreas Kloeckner 2009-09-11 09:50:00 -04:00
parent 7af5573fca
commit b5f86e66be
2 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
def simple_func(x): def simple_func(x):
x += 1 x += 1

View File

@ -159,7 +159,7 @@ def format_source(debugger_ui, lines, breakpoints):
shipout_line() shipout_line()
highlight("".join(l.replace("\t", 8*" ") for l in lines), highlight("".join(l.replace("\t", 8*" ") for l in lines),
PythonLexer(), UrwidFormatter()) PythonLexer(stripnl=False), UrwidFormatter())
return result return result