Version: 1.2, 1.2.1 e previous ones (using KDE KDE 3.0.3) Installed from: Mandrake RPMs Compiler: gcc 3.2 Whichever document type I save in RTF, every brace {} character (left and right, it's the same) is not exported and is erased or hidden from the document. Maybe are there escape characters missing in the RTF export filter?
It works the new RTF export filter of the developement version of KOffice. As for the "old" filter, I am going to look at it tomorrow.
Subject: Re: RTF Export erases braces characters Yes, the "old" filter has a problem. However for now, I do not understand why the escaping is not working. Have a nice day/evening/night! On Saturday 04 January 2003 00:46, Nicolas Goutte wrote: (...) > ------- Additional Comments From nicolasg@snafu.de 2003-01-04 00:46 > ------- It works the new RTF export filter of the developement version of > KOffice. > > As for the "old" filter, I am going to look at it tomorrow.
Do you mean the last CVS code?
Subject: Re: RTF Export erases braces characters > ------- Additional Comments From flagar@libero.it 2003-01-04 23:42 ------- > Do you mean the last CVS code? Yes, CVS version of KWord has a completely new RTF export filter, a rewrite of the old one.
Subject: Re: RTF Export erases braces characters I meant: - the (new) filter in the developement version works correctly with braces. - the (old) filter in KOffice 1.2.x does not work correctly with braces. (However, I have no idea why because in the KOffice 1.2 filter, the code to escape braces exists and is called.) Have a nice day/evening/night! On Saturday 04 January 2003 23:42, Flavio Gargiulo wrote: > ------- You are receiving this mail because: ------- > You are on the CC list for the bug, or are watching someone who is. > > http://bugs.kde.org/show_bug.cgi?id=52546 > > > > > ------- Additional Comments From flagar@libero.it 2003-01-04 23:42 ------- > Do you mean the last CVS code?
Subject: koffice/filters/kword/rtf/oldexport CVS commit by goutte: Fix the export of the {, } and \ characters (Problem: these characters are special for QRegExp too!) CCMAIL: 52546-close@bugs.kde.org M +3 -3 rtfexport.cc 1.4 --- koffice/filters/kword/rtf/oldexport/rtfexport.cc #1.3:1.4 @@ -811,7 +811,7 @@ QString escapeRTFsymbols(const QString& QString text1(text); - text1 = text1.replace( QRegExp( "\\"), "\\\\"); - text1 = text1.replace( QRegExp( "{"), "\\{"); - text1 = text1.replace( QRegExp( "}"), "\\}"); + text1.replace( QRegExp( "\\\\"), "\\\\"); + text1.replace( QRegExp( "\\{"), "\\{"); + text1.replace( QRegExp( "\\}"), "\\}"); return text1; } // end escapeRTFsymbols()