Issue #9 new

lore2sphinxs crashes on td tags with a colspan attribute

Benjamin Arbogast
created an issue

Another fix for the foolscap docs: lore2sphinx crashes on td tags with a colspan attribute.

Since implementing generic handling of colspan (and rowspan) is not too easy I would like to ignore table rows with a colspan attribute.

Comments (2)

  1. Benjamin Arbogast reporter

    Here is the output:

    2011-07-28 13:40:22,125 INFO     ========================================
    2011-07-28 13:40:22,125 INFO     Started lore2sphinx 0.1
    2011-07-28 13:40:22,125 INFO     ========================================
    2011-07-28 13:40:22,126 INFO     
    2011-07-28 13:40:22,126 INFO     docs_location: doc
    2011-07-28 13:40:22,127 INFO     output_dir: doc_rst
    2011-07-28 13:40:22,332 ERROR    FAILED on file: doc/specifications/banana.xhtml
    Traceback (most recent call last):
      File "/usr/local/bin/lore2sphinx", line 5, in <module>
        pkg_resources.run_script('lore2sphinx==0.1dev', 'lore2sphinx')
      File "/usr/local/lib/python2.6/dist-packages/distribute-0.6.10-py2.6.egg/pkg_resources.py", line 461, in run_script
        self.require(requires)[0].run_script(script_name, ns)
      File "/usr/local/lib/python2.6/dist-packages/distribute-0.6.10-py2.6.egg/pkg_resources.py", line 1194, in run_script
        execfile(script_filename, namespace, namespace)
      File "/usr/local/lib/python2.6/dist-packages/lore2sphinx-0.1dev-py2.6.egg/EGG-INFO/scripts/lore2sphinx", line 5, in <module>
        main()
      File "/usr/local/lib/python2.6/dist-packages/lore2sphinx-0.1dev-py2.6.egg/lore2sphinx/scripts.py", line 118, in main
        bprocessor.process()
      File "/usr/local/lib/python2.6/dist-packages/lore2sphinx-0.1dev-py2.6.egg/lore2sphinx/__init__.py", line 1179, in process
        fprocessor.process()
      File "/usr/local/lib/python2.6/dist-packages/lore2sphinx-0.1dev-py2.6.egg/lore2sphinx/__init__.py", line 1124, in process
        self.dprocessor.process()
      File "/usr/local/lib/python2.6/dist-packages/lore2sphinx-0.1dev-py2.6.egg/lore2sphinx/__init__.py", line 426, in process
        self.txt_out += self.handle_element(self.root)
      File "/usr/local/lib/python2.6/dist-packages/lore2sphinx-0.1dev-py2.6.egg/lore2sphinx/__init__.py", line 491, in handle_element
        child_contents += self.handle_element(each)
      File "/usr/local/lib/python2.6/dist-packages/lore2sphinx-0.1dev-py2.6.egg/lore2sphinx/__init__.py", line 491, in handle_element
        child_contents += self.handle_element(each)
      File "/usr/local/lib/python2.6/dist-packages/lore2sphinx-0.1dev-py2.6.egg/lore2sphinx/__init__.py", line 503, in handle_element
        txt_out = format_func(elem, child_contents)
      File "/usr/local/lib/python2.6/dist-packages/lore2sphinx-0.1dev-py2.6.egg/lore2sphinx/__init__.py", line 1048, in format_table
        tbl = Table(self.table_data)
      File "/usr/local/lib/python2.6/dist-packages/lore2sphinx-0.1dev-py2.6.egg/lore2sphinx/table.py", line 103, in __init__
        if cell_width > self.widths[idx]:
    IndexError: list index out of range
    make: *** [lore2sphinx] Error 1
    
    
  2. Log in to comment