summaryrefslogtreecommitdiff
path: root/ext/socket
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-10 12:18:26 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-10 12:18:26 +0000
commit7f52fa08b10cdaecf9e64e7d1e14709543d56743 (patch)
tree6d81a2d0384e4fa013deb30b43e7d65a562add1f /ext/socket
parent8de603784a5e9abee3a33e47b7dd226952e161ef (diff)
* ext/socket/mkconstants.rb: don't generate unintended newlines.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket')
-rw-r--r--ext/socket/mkconstants.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/socket/mkconstants.rb b/ext/socket/mkconstants.rb
index 26a6ef687da..655e990e3da 100644
--- a/ext/socket/mkconstants.rb
+++ b/ext/socket/mkconstants.rb
@@ -83,10 +83,10 @@ ERB.new(<<'EOS', nil, '%').def_method(Object, "gen_const_defs")
% each_const {|guard, define, name, default_value|
% if guard
#if <%=guard%>
-<%= gen_const_defs_in_guard(define, name, default_value) %>
+<%= gen_const_defs_in_guard(define, name, default_value).chomp %>
#endif
% else
-<%= gen_const_defs_in_guard(define, name, default_value) %>
+<%= gen_const_defs_in_guard(define, name, default_value).chomp %>
% end
% }
EOS