diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-09-03 19:25:39 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-09-03 21:04:31 -0700 |
commit | b32d1da1d760f2e193b293af6dde9da272a85e8d (patch) | |
tree | 3bc5627bf6ddd4df796a6164ad510127f4b62dfc /ext/clogger_ext | |
parent | af12d387069d017494daa23534fa7f87aea9ff3b (diff) | |
download | clogger-b32d1da1d760f2e193b293af6dde9da272a85e8d.tar.gz |
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.
Diffstat (limited to 'ext/clogger_ext')
-rw-r--r-- | ext/clogger_ext/clogger.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |