1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/net/protocol.rb (WriteAdapater#puts): must append "\n" to the string, don't prepend. (ruby-bugs:PR#1280)

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
aamine 2004-02-12 11:45:28 +00:00
parent 8bc9475793
commit d589b366bc
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Thu Feb 12 20:45:01 2004 Minero Aoki <aamine@loveruby.net>
* lib/net/protocol.rb (WriteAdapater#puts): must append "\n" to
the string, don't prepend. (ruby-bugs:PR#1280)
Thu Feb 12 20:31:43 2004 Nobuyoshi Nakada <nobu@ruby-lang.org> Thu Feb 12 20:31:43 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/mkmf.rb (create_tmpsrc): cpp32 of Borland C++ ignores #error * lib/mkmf.rb (create_tmpsrc): cpp32 of Borland C++ ignores #error

View file

@ -404,7 +404,7 @@ module Net # :nodoc:
end end
def puts( str = '' ) def puts( str = '' )
write str.sub(/\n?/, "\n") write str.sub(/\n?\z/, "\n")
end end
def printf( *args ) def printf( *args )