paprNewPage adds paragraphs on saving

  • If I have a paragraph with the paprNewPage property set, then everytime I save the document, such as with SaveToFile, it adds an additional empty paragraph in front of the paragraph that has the paprNewpage property.

    So, when reloading the document, such as with LoadFromFile, and resaving it again with SaveToFile, I then have two empty paragraphs. If I do it a third time, yup, three empty paragraphs, etc etc.

    WPTools 5.18.8, Delphi7

    I see you added something to be compatible with Word in 5.11.2, i.e. \page\par when writing a paragraph with the paprNewPage attribute, but I don't see how you compensate for that when reloading.

    Eric

    • Offizieller Beitrag

    Does not happen in my test text - you may mail yours.

    The \page\par should be ok since the \par should be otherwise ignored. But under certain circumstances (in tables) that code caused a problem indeed. Here Word does not allow page breaks at all. So WPTools 5.18.9 now creates a code which will not create an additional par.

    Julian