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

Indent ChangeLog contents [ci skip]

Separate each entries more obviously as `page-delimiter' works
fine.
This commit is contained in:
Nobuyoshi Nakada 2020-02-01 23:11:23 +09:00
parent a2e215fea4
commit b68fc08092
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -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