Skip to content

Commit

Permalink
Added support for writing formfeed and backspace escaped characters (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
PieterOlivier authored Jan 29, 2025
1 parent e22e375 commit f43ad36
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,14 @@ public IValue visitString(IString o) throws IOException {
append('\\');
append('t');
break;
case '\f':
append('\\');
append('f');
break;
case '\b':
append('\\');
append('b');
break;
case ' ':
// needed because other space chars will be escaped in the default branch
append(' ');
Expand Down

0 comments on commit f43ad36

Please sign in to comment.