summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-02-01 23:11:23 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-02-01 23:26:53 +0900
commitb68fc08092c7e41fb4cd34a00a59f2bfe8854720 (patch)
tree694a3060ba353f567d29e2970a36256f0435bc7f /tool
parenta2e215fea4aee398bc903176c4419b4425c98c60 (diff)
Indent ChangeLog contents [ci skip]
Separate each entries more obviously as `page-delimiter' works fine.
Diffstat (limited to 'tool')
-rw-r--r--tool/lib/vcs.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb
index a036d298f8..63a1b70dca 100644
--- a/tool/lib/vcs.rb
+++ b/tool/lib/vcs.rb
@@ -639,19 +639,21 @@ class VCS
w.print "-*- coding: utf-8 -*-\n\n"
cmd_pipe(env, cmd, chdir: @srcdir) do |r|
while s = r.gets("\ncommit ")
+ h, s = s.split(/^$/, 2)
+ h.gsub!(/^(?:Author|Date): /, ' \&')
if s.sub!(/\nNotes \(log-fix\):\n((?: +.*\n)+)/, '')
fix = $1
- h, s = s.split(/^$/, 2)
s = s.lines
fix.each_line do |x|
if %r[^ +(\d+)s/(.+)/(.*)/] =~ x
s[$1.to_i][$2] = $3
end
end
- s = [h, s.join('')].join('')
+ s = s.join('')
end
s.gsub!(/ +\n/, "\n")
- w.print s
+ s.sub!(/^Notes:/, ' \&')
+ w.print h, s
end
end
end