We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c919203 commit 73ce0faCopy full SHA for 73ce0fa
lib/boilerpipe/filters/block_proximity_fusion.rb
@@ -36,8 +36,8 @@ def process(doc)
36
next if diff_blocks > @max_blocks_distance
37
38
ok = true
39
- ok = false if prev_block.is_not_content? && @content_only
40
- ok = false if ok && prev_block.tag_level != tb.tag_level && @same_tag_level_only
+ ok = false if @content_only && prev_block.is_not_content?
+ ok = false if ok && @same_tag_level_only && prev_block.tag_level != tb.tag_level
41
42
if ok
43
prev_block.merge_next(tb)
0 commit comments