Rev: src/nettle/sexp-format.c:1.7
Rev: src/nettle/sexp.h:1.13
default:
{
const char *start = format - 1;
- unsigned length = 1 + strcspn(format, "()%");
+ unsigned length = 1 + strcspn(format, "()% \t");
unsigned output_length = format_string(buffer, length, start);
if (!output_length)
return 0;
break;
}
+ case ' ': case '\t':
+ break;
+
case '\0':
assert(!nesting);
* buffer == NULL, just compute length.
*
* Format strings can contained matched parentheses, tokens ("foo" in
- * the format string is formatted as "3:foo"), and the following
+ * the format string is formatted as "3:foo"), whitespace (which
+ * separates tokens but is otherwise ignored) and the following
* formatting specifiers:
*
* %s String represented as unsigned length, const uint8_t *data.