joshy/striprtf

Problem importing tables

ryanthompson591 opened this issue · 1 comments

To replicate this issue:

from striprtf.striprtf import rtf_to_text

RTF_TABLE = """
{\rtf1\ansi\deff0
\trowd
\cellx1000
\cellx2000
\cellx3000
\intbl cell 1\cell
\intbl cell 2\cell
\intbl cell 3\cell
\row
} 
"""

print(rtf_to_text(RTF_TABLE))

Expected something like:
cell 1 | cell 2 | cell 3

Actual
tf1�nsi rowdcell 1|cell 2|cell 3|ow

Note: I pulled some of the tables from here.

joshy commented

Hi Ryan,

I can't replicate the issue. See commit d4adddd.
Closing the issue.