Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LQDN Adminsys
amendments
Commits
9968c878
Commit
9968c878
authored
Mar 31, 2013
by
Michael Witrant
Browse files
better extraction
parent
c8e07c96
Changes
2
Hide whitespace changes
Inline
Side-by-side
extract_amendments.rb
View file @
9968c878
...
...
@@ -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
...
...
template.erb
View file @
9968c878
=== 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
|
-%>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment