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
8f1665e0
Commit
8f1665e0
authored
Mar 31, 2013
by
Michael Witrant
Browse files
find text
parent
3c2b4bec
Changes
1
Hide whitespace changes
Inline
Side-by-side
extract_amendments.rb
View file @
8f1665e0
...
...
@@ -23,3 +23,9 @@ doc = Nokogiri::XML::Document.parse(xml)
if
xml_dump_path
File
.
open
(
xml_dump_path
,
"w"
)
{
|
f
|
f
.
write
doc
.
to_xml
(
indent:
2
)
}
end
text
=
doc
.
xpath
(
'//office:text'
).
first
raise
"no office:text found"
unless
text
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