We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 26b8467 + b87b6b6 commit e6faa60Copy full SHA for e6faa60
1 file changed
src/pystack/traceback_formatter.py
@@ -36,7 +36,7 @@ def format_frame(frame: PyFrame) -> Iterable[str]:
36
if line_end != line_start:
37
col_end = len(source)
38
a = source[:col_start]
39
- b = source[col_start:col_end]
+ b = source[col_start:col_end].strip("\n")
40
c = source[col_end:]
41
final = f'{a}{colored(b, color="blue")}{c}'
42
yield f" {final.strip()}"
0 commit comments