summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--ext/socket/mkconstants.rb4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 31ec3b1c2f..4ee7376f36 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Sat Jan 10 21:17:28 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/mkconstants.rb: don't generate unintended newlines.
+
Sat Jan 10 20:50:02 2009 Tanaka Akira <akr@fsij.org>
* ext/socket/mkconstants.rb: refactored to nest properly in statically
diff --git a/ext/socket/mkconstants.rb b/ext/socket/mkconstants.rb
index 26a6ef687d..655e990e3d 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