See the attached file test.lyx, which is a table as created with klyx. Applying
On Wed, Feb 18, 2004 at 01:23:27PM +0100, Joachim Zach wrote:
Hello,
I have noticed that tables in older Lyx-files (in my case lyxformat 215 created by KLyX) are not imported correctly into Lyx 1.3.1
I found that this is due to an additional blank after a \newline command within the tables.
Executing
sed "s/newline $/newline/" myoldfile.lyx > mymodfile.lyx
repairs this and mymodfile.lyx is now converted correctly.
Could you please create a minimal example of the 'old' format and send it to [EMAIL PROTECTED] (or file it as bug on bugzilla.lyx.org?)
Andre'
sed "s/newline $/newline/" test.lyx > testmod.lyx
gives a readable file. The only difference is the blanks after the "\newline"
Joachim
--
Dr. Joachim Zach Englerstr. 28 Tel: +49 6221 89467-12
CEOS GmbH D-69126 Heidelberg Fax: +49 6221 89467-29
Germany
#This file was created by <zach> Tue Mar 19 10:25:19 2002 #LyX 0.12 (C) 1995-1998 Matthias Ettrich and the LyX Team \lyxformat 2.15 \textclass article \language german \inputencoding latin1 \fontscheme default \graphics default \paperfontsize default \spacing single \papersize Default \paperpackage a4wide \use_geometry 1 \use_amsmath 0 \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation skip \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default
\layout Standard \added_space_top 0.3cm \added_space_bottom 0.3cm \align center \LyXTable multicol5 5 4 0 0 -1 -1 -1 -1 1 0 0 0 1 1 0 0 1 1 0 0 0 1 0 0 0 1 0 0 8 1 0 "" "" 8 1 0 "" "" 8 1 0 "" "" 8 1 1 "" "" 0 8 0 1 0 0 0 "" "" 0 8 0 1 0 0 0 "" "" 0 8 0 1 0 0 0 "" "" 0 8 0 1 0 0 0 "" "" 0 8 0 1 0 0 0 "" "" 0 8 0 1 0 0 0 "" "" 0 8 0 1 0 0 0 "" "" 0 8 0 1 0 0 0 "" "" 0 8 0 1 0 0 0 "" "" 0 8 0 1 0 0 0 "" "" 0 8 0 1 0 0 0 "" "" 0 8 0 1 0 0 0 "" "" 0 8 0 1 0 0 0 "" "" 0 8 0 1 0 0 0 "" "" 0 8 0 1 0 0 0 "" "" 0 8 0 1 0 0 0 "" "" 0 8 0 1 0 0 0 "" "" 0 8 0 1 0 0 0 "" "" 0 8 0 1 0 0 0 "" "" 0 8 0 1 0 0 0 "" "" Kennung \newline Board \newline Zahl der folgenden Datenbytes \newline n_bytes/2 Daten \newline unsigned char \newline unsigned char \newline unsigned char \newline 16-bit int \newline S \newline 0-6 \newline n_bytes \newline statische Daten \newline W \newline 0-6 \newline n_bytes \newline Wobbeldaten \newline X \newline 0 \newline 0 \newline Wobbel stop (keine Daten) \the_end
#This file was created by <zach> Tue Mar 19 10:25:19 2002 #LyX 0.12 (C) 1995-1998 Matthias Ettrich and the LyX Team \lyxformat 2.15 \textclass article \language german \inputencoding latin1 \fontscheme default \graphics default \paperfontsize default \spacing single \papersize Default \paperpackage a4wide \use_geometry 1 \use_amsmath 0 \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation skip \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Standard \added_space_top 0.3cm \added_space_bottom 0.3cm \align center \LyXTable multicol5 5 4 0 0 -1 -1 -1 -1 1 0 0 0 1 1 0 0 1 1 0 0 0 1 0 0 0 1 0 0 8 1 0 "" "" 8 1 0 "" "" 8 1 0 "" "" 8 1 1 "" "" 0 8 0 1 0 0 0 "" "" 0 8 0 1 0 0 0 "" "" 0 8 0 1 0 0 0 "" "" 0 8 0 1 0 0 0 "" "" 0 8 0 1 0 0 0 "" "" 0 8 0 1 0 0 0 "" "" 0 8 0 1 0 0 0 "" "" 0 8 0 1 0 0 0 "" "" 0 8 0 1 0 0 0 "" "" 0 8 0 1 0 0 0 "" "" 0 8 0 1 0 0 0 "" "" 0 8 0 1 0 0 0 "" "" 0 8 0 1 0 0 0 "" "" 0 8 0 1 0 0 0 "" "" 0 8 0 1 0 0 0 "" "" 0 8 0 1 0 0 0 "" "" 0 8 0 1 0 0 0 "" "" 0 8 0 1 0 0 0 "" "" 0 8 0 1 0 0 0 "" "" 0 8 0 1 0 0 0 "" "" Kennung \newline Board \newline Zahl der folgenden Datenbytes \newline n_bytes/2 Daten \newline unsigned char \newline unsigned char \newline unsigned char \newline 16-bit int \newline S \newline 0-6 \newline n_bytes \newline statische Daten \newline W \newline 0-6 \newline n_bytes \newline Wobbeldaten \newline X \newline 0 \newline 0 \newline Wobbel stop (keine Daten) \the_end