From b32d1da1d760f2e193b293af6dde9da272a85e8d Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 3 Sep 2009 19:25:39 -0700 Subject: add output record separator option (:ORS) This allows overriding the default of "\n". Behavior remains similar to IO#puts, the :ORS (output record separator) is appended iff the format doesn't already end with that string. --- ext/clogger_ext/clogger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext') diff --git a/ext/clogger_ext/clogger.c b/ext/clogger_ext/clogger.c index de58a9e..fa8f9f6 100644 --- a/ext/clogger_ext/clogger.c +++ b/ext/clogger_ext/clogger.c @@ -674,7 +674,7 @@ static VALUE clogger_init(int argc, VALUE *argv, VALUE self) } init_buffers(c); - c->fmt_ops = rb_funcall(self, rb_intern("compile_format"), 1, fmt); + c->fmt_ops = rb_funcall(self, rb_intern("compile_format"), 2, fmt, o); if (Qtrue == rb_funcall(self, rb_intern("need_response_headers?"), 1, c->fmt_ops)) -- cgit v1.2.3-24-ge0c7