From e27ba596c8334a6ca584b17e84c969847217825a Mon Sep 17 00:00:00 2001 From: Michael Mac-Vicar Date: Thu, 2 Oct 2014 11:30:03 -0300 Subject: [PATCH] generator.c: use space_before during generation --- ext/json/generator/generator.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/json/generator/generator.c b/ext/json/generator/generator.c index 550e9be..b0e8928 100644 --- a/ext/json/generator/generator.c +++ b/ext/json/generator/generator.c @@ -871,6 +871,7 @@ static FBuffer *cState_prepare_buffer(VALUE self) } else { state->object_delim2 = fbuffer_alloc(16); } + if (state->space_before) fbuffer_append(state->object_delim2, state->space_before, state->space_before_len); fbuffer_append_char(state->object_delim2, ':'); if (state->space) fbuffer_append(state->object_delim2, state->space, state->space_len); -- 1.8.5.2 (Apple Git-48)