Add string support to %j format.

This commit is contained in:
Calvin Rose 2020-01-24 08:52:27 -06:00
parent e36334e14b
commit 163e2a5b22
2 changed files with 2 additions and 0 deletions

View File

@ -17,6 +17,7 @@ All notable changes to this project will be documented in this file.
- Allow signaling from C functions (yielding) via janet\_signalv. This
makes it easy to write C functions that work with event loops, such as
in libuv or embedded in a game.
- Add '%j' formatting option to the format family of functions.
- Add `defer`
- Add `assert`
- Add `when-with`

View File

@ -354,6 +354,7 @@ static int print_jdn_one(struct pretty *S, Janet x, int depth) {
case JANET_NUMBER:
case JANET_BOOLEAN:
case JANET_BUFFER:
case JANET_STRING:
janet_description_b(S->buffer, x);
break;
case JANET_SYMBOL: