Include ascii_whitespace in printable list characters
ascii_graphic does not include whitespace, so it did not allow an Erlang string with spaces.
@@ -188,7 +188,7 @@ impl Cons {
match result_char {
Ok(c) => {
// https://github.com/erlang/otp/blob/b8e11b6abe73b5f6306e8833511fcffdb9d252b5/erts/emulator/beam/erl_printf_term.c#L132
- c.is_ascii_graphic()
+ c.is_ascii_graphic() || c.is_ascii_whitespace()
}
_ => false,
}
