I want to do a mailmerge using SuperMerge. The resulting text consists of three lines, the first and the last being empty.
When I merge with RTF data the empty lines are being lost. The straight text version works, but of course lacks the formatting.
Here's some code from my SuperMailMergeGetText which I used when trying to pinpoint the problem.
Code
if isRTF then begin
Contents.Options := [mmDeleteThisField, mmMergeAsRTF]; // no empty lines in document
Contents.StringValue := '{\rtf1 \par b\par }'
else
Contents.Options := [mmDeleteThisField];
Contents.StringValue := #10#13 + 'b' + #10#13; // empty lines in document
end;
I have got the feeling that I just lack a simple flag that needs to be set in order to get the empty lines with RTF as well...