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

Strip trailing spaces [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2022-10-24 18:36:40 +09:00
parent c7a5ca999e
commit 6cca8a0ceb
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -19,4 +19,5 @@ unless /^[^#]/ !~ (gem = $F[0])
f = [gem.name, gem.version.to_s, uri, *$F[3..-1]]
$_.gsub!(/\S+\s*/) {|s| (f.shift || "").ljust(s.size)}
$_ = [$_, *f].join(" ") unless f.empty?
$_.rstrip!
end