From 20ef8dfd46d93d50920ff2c175a0efe213e9a568 Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Wed, 29 Dec 2010 18:23:01 -0500 Subject: [PATCH] Permit whitespace between display hint and display body --- sexpio.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sexpio.c b/sexpio.c index c06d21b..150ef6a 100644 --- a/sexpio.c +++ b/sexpio.c @@ -82,6 +82,12 @@ sexp_t *sexp_read(IOHandle *h) { goto error; } iohandle_drain(h, 1); + skip_whitespace_in_display_hint: + READ1; + if (isspace(buf.bytes[0])) { + iohandle_drain(h, 1); + goto skip_whitespace_in_display_hint; + } body = INCREF(read_simple_string(h, EMPTY_BYTES)); CHECKH; accumulator = sexp_display_hint(hint, body);