mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* io.c (rb_io_print): should not print field separator at the end
of arguments. [ruby-talk:358633] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26907 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8b55878d2a
commit
05d4516145
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Sat Mar 13 15:44:20 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* io.c (rb_io_print): should not print field separator at the end
|
||||||
|
of arguments. [ruby-talk:358633]
|
||||||
|
|
||||||
Sat Mar 13 14:49:55 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Sat Mar 13 14:49:55 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* enum.c (enum_join): remove Enumerable#join. [ruby-core:24786]
|
* enum.c (enum_join): remove Enumerable#join. [ruby-core:24786]
|
||||||
|
|
4
io.c
4
io.c
|
@ -5906,10 +5906,10 @@ rb_io_print(int argc, VALUE *argv, VALUE out)
|
||||||
argv = &line;
|
argv = &line;
|
||||||
}
|
}
|
||||||
for (i=0; i<argc; i++) {
|
for (i=0; i<argc; i++) {
|
||||||
rb_io_write(out, argv[i]);
|
if (!NIL_P(rb_output_fs) && i>0) {
|
||||||
if (!NIL_P(rb_output_fs)) {
|
|
||||||
rb_io_write(out, rb_output_fs);
|
rb_io_write(out, rb_output_fs);
|
||||||
}
|
}
|
||||||
|
rb_io_write(out, argv[i]);
|
||||||
}
|
}
|
||||||
if (argc > 0 && !NIL_P(rb_output_rs)) {
|
if (argc > 0 && !NIL_P(rb_output_rs)) {
|
||||||
rb_io_write(out, rb_output_rs);
|
rb_io_write(out, rb_output_rs);
|
||||||
|
|
Loading…
Reference in a new issue