Opened 21 years ago

Closed 21 years ago

#722 closed defect (fixed)

Error importing table (due to empty cells?)

Reported by: ben.bob@… Owned by: nobody@…
Priority: high Milestone:
Component: relyx Version: unspecified
Severity: normal Keywords: patch
Cc:

Description

Description of Problem:
I export a table to latex. This table can not be correctly imported.

Steps to reproduce the problem:

  1. export the attached lyx file to latex
  2. import the latex file
  3. compare two tables.

Actual Results:
A four column table turns to three columns.

Attachments (3)

minimal.tex (275 bytes ) - added by leeming 21 years ago.
a minimal latex test case
testtable.lyx (3.5 KB ) - added by ben.bob@… 21 years ago.
export to latex -> import from latex. Four column turns to three.
table.diff (1.1 KB ) - added by leeming 21 years ago.
patch enables reLyX to read a table with 'm' column descriptors

Download all attachments as: .zip

Change History (7)

comment:1 by levon, 21 years ago

Cleaning... Translating... Use of uninitialized value in string eq at
/usr/local/share/lyx/reLyX/RelyxTable.pm line 460, <TeXOpenFile0003> line 22.
Use of uninitialized value in string eq at
/usr/local/share/lyx/reLyX/RelyxTable.pm line 460, <TeXOpenFile0003> line 22.
Use of uninitialized value in string eq at
/usr/local/share/lyx/reLyX/RelyxTable.pm line 460, <TeXOpenFile0003> line 22.
Use of uninitialized value in string eq at
/usr/local/share/lyx/reLyX/RelyxTable.pm line 460, <TeXOpenFile0003> line 22.
Use of uninitialized value in string eq at
/usr/local/share/lyx/reLyX/RelyxTable.pm line 460, <TeXOpenFile0003> line 22.
Use of uninitialized value in string eq at
/usr/local/share/lyx/reLyX/RelyxTable.pm line 460, <TeXOpenFile0003> line 22.
Use of uninitialized value in string eq at
/usr/local/share/lyx/reLyX/RelyxTable.pm line 460, <TeXOpenFile0003> line 22.
Use of uninitialized value in string eq at
/usr/local/share/lyx/reLyX/RelyxTable.pm line 460, <TeXOpenFile0003> line 22.
Writing... )
Deleting temp files
Finished successfully!
Traceback (innermost last):

File "/home/moz/src/lyx/lyx-devel/lib/lyx2lyx/lyx2lyx", line 180, in ?

main(sys.argv)

File "/home/moz/src/lyx/lyx-devel/lib/lyx2lyx/lyx2lyx", line 173, in main

import("lyxconvert_" + fmt).convert(header,body)

File "/home/moz/src/lyx/lyx-devel/lib/lyx2lyx/lyxconvert_217.py", line 104, in

convert

update_tabular(body)

File "/home/moz/src/lyx/lyx-devel/lib/lyx2lyx/lyxconvert_217.py", line 43, in

update_tabular

new_table = table_update(lines[i:j])

File "/home/moz/src/lyx/lyx-devel/lib/lyx2lyx/lyxconvert_217.py", line 89, in

table_update

lines[i] = '<row topline="%s" bottomline="%s" newpage="%s">' %

(bool_table[val[0]], bool_table[val[1]], bool_table[val[2]])
KeyError: 2

by ben.bob@…, 21 years ago

Attachment: testtable.lyx added

export to latex -> import from latex. Four column turns to three.

by leeming, 21 years ago

Attachment: minimal.tex added

a minimal latex test case

comment:2 by leeming, 21 years ago

attachments.isobsolete: 01

by leeming, 21 years ago

Attachment: table.diff added

patch enables reLyX to read a table with 'm' column descriptors

comment:3 by leeming, 21 years ago

Keywords: patch added

comment:4 by leeming, 21 years ago

Resolution: fixed
Status: newclosed

Fixed in 1.4

Note: See TracTickets for help on using tickets.