mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-25 04:11:44 +00:00
Ruby NEWS.md module: remove comments when reading the file
This commit is contained in:
parent
5ae429f849
commit
32d5f15b2f
@ -19,7 +19,10 @@ def parse_news file_name
|
||||
end
|
||||
end
|
||||
|
||||
IO.readlines(file_name).each do |line|
|
||||
IO.read(file_name).
|
||||
gsub(%r{<!--.*?-->}, '').
|
||||
split(%r{\n}).
|
||||
each do |line|
|
||||
is_continuation = %r{^\s}.match(line)
|
||||
line = line.chomp.gsub(%r{^\s+}, '').gsub(%r{\s+}, ' ')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user