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
9a85fa40
Commit
9a85fa40
authored
Mar 31, 2013
by
Michael Witrant
Browse files
find amendment table
parent
ae89b81d
Changes
1
Hide whitespace changes
Inline
Side-by-side
extract_amendments.rb
View file @
9a85fa40
...
...
@@ -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
...
...
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