zdavatz / ydocx

Parsing docx files with Ruby and output them as HTML
GNU General Public License v3.0
14 stars 8 forks source link

undefined method when running docx2html script #1

Closed chenryn closed 11 years ago

chenryn commented 11 years ago

/var/lib/gems/1.9.1/gems/ydocx-1.2.3/lib/ydocx/templates/fachinfo.rb:109:in parse_title': undefined methodinner_text' for nil:NilClass (NoMethodError) from /var/lib/gems/1.9.1/gems/ydocx-1.2.3/lib/ydocx/templates/fachinfo.rb:130:in parse_block' from /var/lib/gems/1.9.1/gems/ydocx-1.2.3/lib/ydocx/parser.rb:219:inparse_paragraph' from /var/lib/gems/1.9.1/gems/ydocx-1.2.3/lib/ydocx/parser.rb:37:in block in parse' from /usr/lib/ruby/vendor_ruby/nokogiri/xml/node_set.rb:239:inblock in each' from /usr/lib/ruby/vendor_ruby/nokogiri/xml/node_set.rb:238:in upto' from /usr/lib/ruby/vendor_ruby/nokogiri/xml/node_set.rb:238:ineach' from /var/lib/gems/1.9.1/gems/ydocx-1.2.3/lib/ydocx/parser.rb:30:in map' from /var/lib/gems/1.9.1/gems/ydocx-1.2.3/lib/ydocx/parser.rb:30:inparse' from /var/lib/gems/1.9.1/gems/ydocx-1.2.3/lib/ydocx/document.rb:126:in block in read' from /var/lib/gems/1.9.1/gems/ydocx-1.2.3/lib/ydocx/parser.rb:24:ininitialize' from /var/lib/gems/1.9.1/gems/ydocx-1.2.3/lib/ydocx/document.rb:124:in new' from /var/lib/gems/1.9.1/gems/ydocx-1.2.3/lib/ydocx/document.rb:124:inread' from /var/lib/gems/1.9.1/gems/ydocx-1.2.3/lib/ydocx/document.rb:33:in initialize' from /var/lib/gems/1.9.1/gems/ydocx-1.2.3/lib/ydocx/document.rb:19:innew' from /var/lib/gems/1.9.1/gems/ydocx-1.2.3/lib/ydocx/document.rb:19:in open' from /var/lib/gems/1.9.1/gems/ydocx-1.2.3/lib/ydocx/command.rb:99:inrun' from /var/lib/gems/1.9.1/gems/ydocx-1.2.3/bin/docx2xml:12:in <top (required)>' from /usr/local/bin/docx2xml:19:inload' from /usr/local/bin/docx2xml:19:in `

'

grauwoelfchen commented 11 years ago

What kind of content did you run with ?

Please try --format none or --format plain option. In default, this script handles docx file as Fachinformation format.

chenryn commented 11 years ago

OK if --format plain. What's fachinfo mean?

grauwoelfchen commented 11 years ago

The Fachinformation is document in German and French for medical doctor. This gem was made for medical person.

If your docx is not so then I recommend you docx.

Anyway, I will fix error above. thanks. :pill: :syringe:

chenryn commented 11 years ago

I didn't find other gems that can keep the image as in html. Thank you for ever.

2012/12/5 Yasuhiro Asaka notifications@github.com

The Fachinformation is document in Germany and French for medical doctor. This library was made for medical person.

If your docx is not so then I recommend you docxhttps://github.com/mportiz08/docx

Anyway, I will fix error above. thanks. [image: :pill:][image: :syringe:]

— Reply to this email directly or view it on GitHubhttps://github.com/zdavatz/ydocx/issues/1#issuecomment-11027524.

zdavatz commented 11 years ago

;)