From fb28cbdbfd014bf8c5e45a67530fc53d7c7bc6e8 Mon Sep 17 00:00:00 2001 From: davemachado Date: Fri, 18 Aug 2017 11:57:59 -0400 Subject: [PATCH] remove extra whitespace --- build/validate_format.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/build/validate_format.rb b/build/validate_format.rb index 923c0338..d746224a 100755 --- a/build/validate_format.rb +++ b/build/validate_format.rb @@ -34,18 +34,15 @@ sections = [] section_to_line_num = {} section_to_entries = Hash.new {|h,k| h[k] = Array.new } File.foreach(filename).with_index do | line, line_num | - if line.start_with?('###') section = line.sub('###', '').lstrip.chop sections.push(section) section_to_line_num[section] = line_num + 1 end - # Skip non-markdown table lines and table schema lines if !line.start_with?('|') || line.eql?("|---|---|---|---|---|\n") next end - # char to check is the first column check_char = line.split("|")[1].strip.upcase section_to_entries[section].push(check_char)