mithro / media2iki

Convert MediaWiki into an ikiwiki while preserving all history
http://ikiwiki.info/
GNU General Public License v2.0
13 stars 6 forks source link

iki-reformat not flattening xml #2

Open RMBLRX opened 10 years ago

RMBLRX commented 10 years ago

I'm having a problem exploding the edits:

$ ruby iki-scatter-revs.rb CoC.xml nodes
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- node-callback (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from iki-scatter-revs.rb:19:in `<main>'

But I think it's because iki-reformat seems to be just copying the original xml, rather than flattening it.

mithro commented 10 years ago

I haven't used this code in many years and don't actually know ruby so can't really suggest what the problem is.

If you do figure out the problem, please do send me a pull request / patch or even just a comment and I'll try update this repository.

RMBLRX commented 10 years ago

I seem to have found a partial solution (submitted a pull request for it) and no longer get the error, but even so, it leaves 'nodes' empty. I'm pretty sure it's due to iki-reformat.xsl not working.