bin/review-validate in review-5.0.0 vs bin/review-validate in review-5.1.0

- old
+ new

@@ -6,14 +6,13 @@ # the GNU LGPL, Lesser General Public License version 2.1. # For details of the GNU LGPL, see the file "COPYING". # # simple validator for Re:VIEW -require 'pathname' -bindir = Pathname.new(__FILE__).realpath.dirname -$LOAD_PATH.unshift((bindir + '../lib').realpath) +$LOAD_PATH.unshift(File.realpath('../lib', __dir__)) + require 'review/logger' block = nil maxcolcount = 0 colcount = 0 @@ -51,9 +50,10 @@ unless %w[list emlist listnum emlistnum cmd image table].include?(block) @logger.warn "#{ln}: found itemized list or numbered list in #{block}. Is it correct?" end elsif block == 'table' next if line.start_with?('#@') + if line !~ /\A-----/ # table colcount = line.split("\t").size if maxcolcount == 0 maxcolcount = colcount