Hi,
When reading a rtf file with \keep and \keepn tags, they are not always set in WpTools.

Sample from a RTF file:

\par\pard\keep\keepn\ql{\f0\fs22\cf0 row 1 }\par\pard\keep\keepn\ql{\f0\fs22\cf0 row 2}\par\pard\keep\keepn\ql{\f0\fs22\cf0 row 3}\par\pard\keep\ql{\f0\fs22\cf0 row 4}

Reading this file gives that Row 1 and 2 only get the WPAT_ParKeep set. Row 3 gets both WPAT_ParKeep and WPAT_ParKeepn set as expected, and Row 4 has WPAT_ParKeep set.

Changing the RTF to

\par\pard\keep\keepn\ql\f0\fs22\cf0 row 1
\par\pard\keep\keepn\ql\f0\fs22\cf0 row 2
\par\pard\keep\keepn\ql\f0\fs22\cf0 row 3
\par\pard\keep\ql\f0\fs22\cf0 row 4

This will set WPAT_ParKeep and WPAT_ParKeepn to Row 1, 2 and 3 as expected. Also Row 4 will get WPAT_ParKeep set.

Since grouping the style attributes with the text is a nice feature when there are several different fontstyles within one paragraph I would like this bug to be solved.

Regards
Per-Erik