Clearing status \ listlevel in RTF

I was outputting RTF from a word processor. This works well, but there is a special situation that is not consistent with Word 2000 causing document corruption. Word 2007 works great with RTF, which means they've fixed something. However, I need to be able to output RTF that will work with any version of Word.

The required text looks like this:

1. Title
blah blah blah

      

The key here is that it appears in a table cell. The RTF output is displayed below. The list is configured to display numbered text that is used for the title. Then there is \ pard, which resets it (highlighted below with two stars) and plain text is output. If \ pard is used in the cell, then Word 2000 crashes. If it is omitted, it works fine. But then Word 2007 shows the next line with a numbered sequence.

\trowd \clvertalt\cellx4300\clvertalt\cellx8600\intbl
{\ql\fi-432\li432\sb240\sa0\tx432\plain\s71\f1\fs20 
{\listtext 1.\tab 
}\ls1\ilvl0 title
\par**\pard**\ql\sa120\plain\s24\f1\fs20 blah blah blah
\par\cell\ql\fi0\li0\ri0\sb0\sa0\plain\s23\f12\fs20 \cell 
}\intbl
{\row 
}\trowd \clvertalt\cellx4300\clvertalt\cellx8600\intbl
{\ql\fi0\li0\ri0\sb0\sa0\plain\s23\f12\fs20\cell\ql\fi0\li0\ri0\sb0\sa0\plain\s23\f12\fs20 
\par\cell 
}\intbl
{\row 
}\pard 
{\ql\fi0\li0\ri0\sb0\sa0\plain\s23\f12\fs20 
\par
}

      

If anyone can suggest how to clear the list level \ ls1 from the blah blah blah line, or what the problem with \ pard might be, then I would be very grateful. Thank!

+1


source to share


1 answer


Okay, after investigating a lot, a colleague found that the answer was to add "\ intbl" after \ pard, which caused the problem. Presumably this is needed to re-set the flag in Word when it creates data.



0


source







All Articles