[前][次][番号順一覧][スレッド一覧]

ruby-changes:56528

From: Nobuyoshi <ko1@a...>
Date: Mon, 15 Jul 2019 09:29:47 +0900 (JST)
Subject: [ruby-changes:56528] Nobuyoshi Nakada: ff3704031a (master): Insert a newline before `=end`

https://git.ruby-lang.org/ruby.git/commit/?id=ff3704031a

From ff3704031a6c23ae2020576c4fecbdc6b1c91246 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Mon, 15 Jul 2019 09:26:57 +0900
Subject: Insert a newline before `=end`

For a certain editor which cannot handle here-document properly.

diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb
index 427d69f..9046249 100755
--- a/tool/rbinstall.rb
+++ b/tool/rbinstall.rb
@@ -469,7 +469,8 @@ PROLOG_SCRIPT.default = (load_relative || /\s/ =~ bindir) ? https://github.com/ruby/ruby/blob/trunk/tool/rbinstall.rb#L469
 # -*- ruby -*-
 _=_\\
 =begin
-#{prolog_script}=end
+#{prolog_script.chomp}
+=end
 EOS
 
 installer = Struct.new(:ruby_shebang, :ruby_bin, :ruby_install_name, :stub, :trans)
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]