I have an app where a string is generated with specific line breaks and space formatting to create a text stamp that gets pasted into PDFs. This worked fine in both Foxit and Adobe PDF programs with Powerbuilder 2017. After migrating it to Powerbuilder 2019R3, I noticed that if the text gets pasted into a comment textbox that has a background, as opposed to a standard textbox without a background, the line breaks are lost in the formatting. Also, spacing before the first character in a line doesn't work; the spacing seems to stick to the end of the prior line.
The special formatting calls used in the string are char(10), which is Line Feed, and char(11), which is Vertical Tab. I tried using char(13), Carriage Return, but it didn't fix things. I also tried using ~r and ~n but those do not give a proper result either.
The text is built as a string, which is then set as the text for a Rich Text Editor, then the string is set to the text of the Rich Text Editor, and finally the string is copied to the clipboard. I tried going directly from string to clipboard, but that also did not work.
I'm hoping for a quick fix to get this corrected, but if it's not possible with the 2019R3 build I am open to a better method of generating this text.
Thanks