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
4ac9005e
Commit
4ac9005e
authored
Apr 04, 2011
by
Michael Witrant
Browse files
extension mediawiki
parent
1dc02c07
Changes
2
Hide whitespace changes
Inline
Side-by-side
convert
View file @
4ac9005e
...
...
@@ -25,7 +25,7 @@ sections = data.scan(%r(<Amend>.+?</Amend>)m)
template
=
ERB
.
new
File
.
read
(
'template.erb'
),
nil
,
'-'
File
.
open
"result.
txt
"
,
"w"
do
|
f
|
File
.
open
"result.
mediawiki
"
,
"w"
do
|
f
|
sections
.
each
do
|
xml
|
doc
=
Nokogiri
::
XML
(
xml
)
...
...
result.
txt
→
result.
mediawiki
View file @
4ac9005e
File moved
Write
Preview
Markdown
is supported
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