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:
parent
c7a5ca999e
commit
6cca8a0ceb
1 changed files with 1 additions and 0 deletions
|
@ -19,4 +19,5 @@ unless /^[^#]/ !~ (gem = $F[0])
|
||||||
f = [gem.name, gem.version.to_s, uri, *$F[3..-1]]
|
f = [gem.name, gem.version.to_s, uri, *$F[3..-1]]
|
||||||
$_.gsub!(/\S+\s*/) {|s| (f.shift || "").ljust(s.size)}
|
$_.gsub!(/\S+\s*/) {|s| (f.shift || "").ljust(s.size)}
|
||||||
$_ = [$_, *f].join(" ") unless f.empty?
|
$_ = [$_, *f].join(" ") unless f.empty?
|
||||||
|
$_.rstrip!
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue