lib/review/index_builder.rb in review-5.1.1 vs lib/review/index_builder.rb in review-5.2.0

- old
+ new

@@ -22,13 +22,13 @@ end def check_id(id) if id if id =~ %r![#%\\{}\[\]~/$'"|*?&<>`\s]! - warn "deprecated ID: `#{$&}` in `#{id}`" + warn "deprecated ID: `#{$&}` in `#{id}`", location: location elsif id.start_with?('.') - warn "deprecated ID: `#{id}` begins from `.`" + warn "deprecated ID: `#{id}` begins from `.`", location: location end end end def pre_paragraph @@ -49,12 +49,11 @@ end builder_init_file end def builder_init_file - @sec_counter = SecCounter.new(5, @chapter) - + super @headline_stack = [] @list_index = ReVIEW::Book::ListIndex.new @table_index = ReVIEW::Book::TableIndex.new @equation_index = ReVIEW::Book::EquationIndex.new @@ -596,20 +595,12 @@ def embed(_lines, _arg = nil) '' end - def warn(msg) - @logger.warn "#{@location}: #{msg}" - end - - def error(msg = '(no message)') - if msg =~ /builder does not support command/ - # ignore - return - end - - super + ## override + def error(msg = nil) + # ignore in indexing end def texequation(_lines, id = nil, _caption = '') check_id(id) if id