blob: 23102f797a504b4d7a79fcbe7c2220524c3c4c31 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
# frozen_string_literal: true
last_is_void = false
ARGF.each do |line|
case line
when /\A\s*\z/, /\A\#/
puts unless last_is_void
last_is_void = true
else
print line
last_is_void = false
end
end
|