Commit 9968c878 authored by Michael Witrant's avatar Michael Witrant

better extraction

parent c8e07c96
...@@ -65,7 +65,7 @@ text.children.each_with_index do |node, i| ...@@ -65,7 +65,7 @@ text.children.each_with_index do |node, i|
end end
end end
puts "#{amend_nodes.length} amendments found" debug amendments_found: amend_nodes.length
amendments = [] amendments = []
...@@ -83,8 +83,8 @@ amend_nodes.each do |nodes| ...@@ -83,8 +83,8 @@ amend_nodes.each do |nodes|
article = amend_doc.xpath("//Article").first.text article = amend_doc.xpath("//Article").first.text
amendment = { amendment = {
num_am: num_am, num: num_am,
doc_amend: doc_amend, doc: doc_amend,
article: article, article: article,
} }
debug amendment debug amendment
......
=== Amendment <%= am_num %> === === Amendment <%= num %> ===
{| border="1" style="border-spacing:0;" cellpadding="3" {| border="1" style="border-spacing:0;" cellpadding="3" width="100%"
|- |-
! colspan="2" style="background-color: transparent;" | ! colspan="2" style="background-color: lightgrey;" |
Amendement <%= am_num %> Amendement <%= num %>
<br/> <br/>
<%= article %> <%= article %>
<% changes.each do |original, changed| -%> <% changes.each do |original, changed| -%>
......
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