Commit 5ff0311c authored by Michael Witrant's avatar Michael Witrant
Browse files

always start amendment from 3rd row

parent f81d8ef7
......@@ -134,13 +134,8 @@ class AmendmentExtractor
debug text_table: text_table
debug "locating header"
header_index = text_table.index(["Text proposed by the Commission", "Amendment"])
raise "header not found in table of amendment #{num_am}" unless header_index
debug "extracting changes from table"
changes = text_table[(header_index + 1)..-1]
changes = text_table[2..-1]
raise "amendment changes not found" if changes.size == 0
debug changes: changes
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment