mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-23 04:50:17 +00:00
a small fix
This commit is contained in:
parent
fa3e46bc46
commit
4c27b5210b
@ -44,7 +44,9 @@ struct SourceMetadata {
|
||||
_Str snapshot(int lineno){
|
||||
_StrStream ss;
|
||||
ss << " " << "File \"" << filename << "\", line " << lineno << '\n';
|
||||
ss << " " << getLine(lineno) << '\n';
|
||||
_Str line = getLine(lineno).__lstrip();
|
||||
if(line.empty()) line = "<?>";
|
||||
ss << " " << line << '\n';
|
||||
return ss.str();
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user