Version: KOffice CVS HEAD 2003-02-14 (using KDE KDE 3.1) Installed from: Compiled From Sources Compiler: gcc 3.2 -march=pentium2 OS: Linux KWord's RTF import filter cannot write a correct KWord file if a table exist in the RTF file. The problem is that garbage character appears, either being non-UTF-8-compatible or escaping the following < by shifiting it somewhere else in the Unicode file. The result is that the file is not XML anymore and XML parsers complain (QT or xmllint.) As far as I can see, the garbage never happens before or in the table but always after. Curiouls too, it appears always before < of a closing tag. Have a nice day/evening/night!
Created attachment 1033 [details] RTF file with table The table was created in AbiWord and exported as RTF.
Subject: Re: Problem with RTF import With \intbl, it gives the same problem. However I have tried to use -march=i386 instead of -march=pentium2 and found out that it crashes without \intbl. (I suppose that it see what you are seeing.) With \intbl, it gives the same symptoms than I have described in the bug report. It would be nice if someone having Valgrind at hand could check the problem. Have a nice day/evening/night! On Friday 28 February 2003 14:28, Tomasz Grobelny wrote: > On sob 15. lutego 2003 23:08, Nicolas Goutte wrote: > > That is now bug #54694: http://bugs.kde.org/show_bug.cgi?id=54694 > > Could you please check if replacing "\cell" with "\intbl\cell" makes the > bigger files import? It does work (not correctly but doesn't crash) for the > test doc you attached to the bug report. > > Tomek > --------------r-e-k-l-a-m-a----------------- > > > Tanie bilety lotnicze! > http://samoloty.onet.pl > _______________________________________________ > koffice-devel mailing list > koffice-devel@mail.kde.org > http://mail.kde.org/mailman/listinfo/koffice-devel
Subject: koffice/filters/kword/rtf/import CVS commit by goutte: Fix the problem with importing RTF files Unlike what I thought, it has nothing to do with tables. The bug triggers with any empty node. It might be a QT Bug. (QT Issue number pending.) CCMAIL: 54694-done@bugs.kde.org M +1 -1 rtfimport_dom.cpp 1.4 --- koffice/filters/kword/rtf/import/rtfimport_dom.cpp #1.3:1.4 @@ -48,5 +48,5 @@ void DomNode::clear( int level ) array.truncate( 0 ); setBuffer( array ); - open( IO_WriteOnly | IO_Truncate ); + open( IO_WriteOnly ); // do *not* use IO_Truncate (QT 3.1.x resize QBuffer to 1) documentLevel = level; hasChildren = true;