Skip to content

Commit

Permalink
Escape newline characters in Debugger.cs commands (#1365)
Browse files Browse the repository at this point in the history
Update Debugger.cs

Fixes #1364
  • Loading branch information
bspeice authored Oct 24, 2022
1 parent 3511d55 commit 6aea2ee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/MICore/Debugger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -784,6 +784,9 @@ private string Escape(string str)
case '\\':
outStr.Append("\\\\");
break;
case '\n':
outStr.Append("\\n");
break;
default:
outStr.Append(str[i]);
break;
Expand Down

0 comments on commit 6aea2ee

Please sign in to comment.