Version: 1.2.92 (using KDE KDE 3.1.3) Installed from: Unlisted Binary Package OS: Linux An RTF document produced by our help desk system can't be imported: Tag mismatch, line 756, column 15 The file probably contains nesting errors, but OO 1.0 and Word 2000 can still open the document, so KWord should do that as well. I can send the RTF file if a developer needs it.
If you can make that file public, please attach it to this bug report. If you cannot could you please make a small test file having the same problem. Have a nice day!
Created attachment 2295 [details] RTF file produced by Crystal Report It's a very shitty RTF file produced by Crystal Reports, probably contains nesting errors, but MS Word and OO can open it, so KWord should be able to do that too. Similar files may occur in many places.
Subject: Can't import an RTF file The nesting problem is only the result of the RTF import filter. It is Qt that complains that it is not right XML. And KWord displays Qt's complaint. The problem is that this RTF file is not 7bit clean, as RTF should be normally. The accented character are directly in the text and not escaped. The RTF import filter was not made for this and therefore put out garbage. (In fact non-UTF-8 characters in a UTF-8 XML file. Qt returns an error that is misleading.) However, I have made a hack for KOffice 1.3. Have a nice day!
Subject: koffice/filters/kword/rtf/import CVS commit by goutte: Add support for non-7-bit-clean files. Reason: the import filter copied 1:1 non UTF-8 characters in the output file. WARNING: this is more a hack, as it is not in line with the logic of the code of the RTF import filter. However, I think that it is good enough for KOffice 1.3. CCMAIL:62903-close@bugs.kde.org M +17 -3 rtfimport.cpp 1.56 M +19 -25 rtfimport_dom.cpp 1.6 M +3 -1 rtfimport_dom.h 1.4