RTF Not Being Generated Correctly

  •  08-01-2007, 7:15 AM

    RTF Not Being Generated Correctly

    Copy and paste the following 3 lines of test text into CuteEditor:
     
    this test does not include bullets this time
    let's see if this text runs together in rich text
    what about this text where words adjacent have the same formatting
     
    If this gets exported in RTF, it generates the following:
     
    {\rtf1\ansi\ansicpg1252\deff0\deflang1033{\colortbl;\red0\green0\blue0;\red255\green0\blue0;}{\fonttbl {\f0\fswiss\fcharset1252 Times New Roman;} {\f1\fswiss\fcharset1252 comic sans ms;} }{\*\generator CuteEditor 5.0;}\viewkind4\uc1\pard\par \pard\cf1\f0\fs24\qj\b0\i0\ulnone \cf1\f0\fs24\qj\b1\i0\ulnone this\cf1\f0\fs24\qj\b0\i0\ulnone test \cf1\f0\fs24\qj\b0\i1\ulnone does\cf1\f0\fs24\qj\b0\i0\ulnone not \cf1\f0\fs24\qj\b0\i0\ul include\cf1\f0\fs24\qj\b0\i0\ulnone bullets \cf2\f1\fs24\qj\b0\i0\ulnone this\cf1\f0\fs24\qj\b0\i0\ulnone time\par \pard\cf1\f0\fs24\qj\b0\i0\ulnone \cf1\f0\fs24\qj\b0\i1\ulnone let's\cf1\f0\fs24\qj\b1\i0\ulnone see\cf1\f0\fs24\qj\b0\i0\ul if\cf1\f0\fs24\qj\b1\i0\ulnone this\cf1\f0\fs24\qj\b0\i1\ulnone text\cf1\f0\fs24\qj\b0\i0\ul runs\cf1\f0\fs24\qj\b1\i0\ulnone together\cf1\f0\fs24\qj\b0\i1\ulnone in\cf1\f0\fs24\qj\b0\i0\ul rich\cf1\f0\fs24\qj\b1\i0\ulnone text\par \pard\cf1\f0\fs24\qj\b0\i0\ulnone \cf1\f0\fs24\qj\b0\i1\ulnone what about\cf1\f0\fs24\qj\b1\i0\ulnone this text\cf1\f0\fs24\qj\b0\i0\ul where words adjacent\cf2\f0\fs24\qj\b0\i0\ulnone have the \cf1\f0\fs24\qj\b0\i0\ulnone same formatting}
     
    Which means the text incorrectly appears like this when loaded in an RTF editor (including Cute):
     
    this test does not include bullets this time
    let'sseeifthistextrunstogetherinrichtext
    what aboutthis textwhere words adjacenthave the same formatting
     
    So it appears that spacing is not being preserved when adjacent words have different formatting.
     
    I have two different applications loading this RTF code, so I can verify that it is the way that Cute Editor saves the RTF, and not the way it loads it.
     
    When using Application A, which has Cute Editor, if I save the original test text (in my top example), it appears incorrectly in both applications.  When using Application B, which uses a different RTF editor, if I save the same test text, it loads properly in both applications.  This can only lead me to believe that the way in which CuteEditor is exporting RTF is not correct.
     
    Can you please let me know when there will be a fix for this, or in the meantime, if there is a workaround?
     
    Thanks,
    -Chris
View Complete Thread