Skip to content

Commit e6faa60

Browse files
authored
Merge branch 'main' into fix-traceback-formatter
Signed-off-by: Kirill Ignatev <kiri11@users.noreply.github.com>
2 parents 26b8467 + b87b6b6 commit e6faa60

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pystack/traceback_formatter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def format_frame(frame: PyFrame) -> Iterable[str]:
3636
if line_end != line_start:
3737
col_end = len(source)
3838
a = source[:col_start]
39-
b = source[col_start:col_end]
39+
b = source[col_start:col_end].strip("\n")
4040
c = source[col_end:]
4141
final = f'{a}{colored(b, color="blue")}{c}'
4242
yield f" {final.strip()}"

0 commit comments

Comments
 (0)