lib/asciidoctor/reducer/tree_processor.rb in asciidoctor-reducer-1.0.1 vs lib/asciidoctor/reducer/tree_processor.rb in asciidoctor-reducer-1.0.2
- old
+ new
@@ -6,10 +6,10 @@
if (inc_replacements = doc.reader.include_replacements).size > 1 || !(inc_replacements[0][:drop] || []).empty?
inc_replacements[0][:lines] = doc.source_lines.dup
inc_replacements.reverse_each do |it|
if (into = it[:into])
target_lines = inc_replacements[into][:lines]
- # adds extra bit of assurance that we're replacing the correct line
+ # adds extra assurance that we're replacing the correct line
next unless target_lines[(idx = it[:lineno] - 1)] == it[:line]
end
lines = it[:lines]
unless (drop = it[:drop] || []).empty?
drop.reverse_each do |drop_it|