#44 latex2e writer cannot render table contains multirows well

closed-accepted
None
5
2005-05-25
2005-05-24
moriwaka
No

When 2+ morerows columns appeared at start of row,
latex2e writer put only one '& ' at next (or later) rows.

--- /usr/lib/site-python/docutils/writers/latex2e.py
2004-11-26 02:31:48.000000000 +0900
+++ latex2e.py 2005-05-24 20:11:44.026287368 +0900
@@ -1203,8 +1203,12 @@
if self.active_table.get_entry_number() == 1:
# if the firstrow is a multirow, this
actually is the second row.
# this gets hairy if rowspans follow each
other.
+
if self.active_table.get_rowspan(0):
- self.body.append(' & ')
+ count = 0
+ while
self.active_table.get_rowspan(count):
+ count += 1
+ self.body.append(' & ')
self.active_table.visit_entry() #
increment cell count
else:
self.body.append(' & ')

Discussion

  • Felix Wiemann

    Felix Wiemann - 2005-05-24
    • assigned_to: nobody --> felixwiemann
    • status: open --> pending
     
  • Felix Wiemann

    Felix Wiemann - 2005-05-24

    Logged In: YES
    user_id=1014490

    The patch is not readable inline (mangled by the SF.net bug
    tracker). Please attach it as a file. (Be sure to check
    the "Check to Upload and Attach a File" box.)

    Could you please also provide a minimal example input file
    which shows the problem?

     
  • engelbert gruber

    Logged In: YES
    user_id=147070

    commited.

     
  • Felix Wiemann

    Felix Wiemann - 2005-05-25
    • status: pending --> closed-accepted
     
  • Felix Wiemann

    Felix Wiemann - 2005-05-25

    Logged In: YES
    user_id=1014490

    Thanks; closing the bug report.

     
  • moriwaka

    moriwaka - 2005-05-26

    the patch

     
  • moriwaka

    moriwaka - 2005-05-26

    sample table

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks