mirror of
https://github.com/janet-lang/janet
synced 2025-10-22 11:17:40 +00:00
More gracefully handle.
This commit is contained in:
@@ -570,7 +570,7 @@ static int json_encode(DstArgs args) {
|
||||
if (args.n >= 3) {
|
||||
DST_ARG_BYTES(e.newline, e.newlinelen, args, 2);
|
||||
} else {
|
||||
e.newline = (const uint8_t *)"\n";
|
||||
e.newline = (const uint8_t *)"\r\n";
|
||||
e.newlinelen = 1;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user