From 32d5f15b2f3c679ea530e729d3a1757e601b9710 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 14 Apr 2017 14:46:07 +0200 Subject: [PATCH] Ruby NEWS.md module: remove comments when reading the file --- tools/development/modules/news.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/development/modules/news.rb b/tools/development/modules/news.rb index 7d29b9ec0..5295838fc 100644 --- a/tools/development/modules/news.rb +++ b/tools/development/modules/news.rb @@ -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+}, ' ')