소스 검색

remove extra whitespace

pull/467/head
davemachado 6 년 전
부모
커밋
fb28cbdbfd
1개의 변경된 파일0개의 추가작업 그리고 3개의 파일을 삭제
  1. +0
    -3
      build/validate_format.rb

+ 0
- 3
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)


불러오는 중...
취소
저장