Empty paragraph being added if text after table

  • If you have a table in a WPRichText, and some text after the table and save using SaveToFile and then LoadFromFile, you will see that an empty paragraph has been appended. Do this several times, and you end up with a lot of empty paragraphs at the end of your document.

    1. Create a 2x2 table
    2. Add a line of text after the table
    3. SaveToFile
    4. LoadFromFile... notice the extra empty paragraph.

    Note that if there is at least one empty paragraph between the table and the text, then there is no problem. It is only a problem if there is text immediately after the table.

    WPTools 5.20.6
    Delphi 7

    P.S. I emailed you a demo