Commit 9a85fa40 authored by Michael Witrant's avatar Michael Witrant

find amendment table

parent ae89b81d
......@@ -69,6 +69,14 @@ amend_nodes.each do |nodes|
article: article,
}
debug amendment
tables = nodes.css('table|table')
raise "amendment table not found" if tables.size == 0
raise "too many tables" if tables.size > 1
table = tables.first
amendments << amendment
break if parse_only_one
......
Markdown is supported
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