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