AppendRTItem method

I am building hotspot links using DXL. My script returns the link in a richtext field which i then append to an existing rich text so that the links are one below the other. But there is a lot of default spacing between each link. How can i set the attributes in the richtext so that the links appear right below each other without any spacing.I tried the RichtextParagraphStyle methods, but it didn’t seem to do it. Any idea?!!

Thanks,

Subject: Are you using rt.AddNewline(n)?

If you are using AddNewLine to have a line break between the links, you may want to try adding a character as text:

rt.AppendText(Chr(13))

Play around with Chr(0), Chr(10), and Chr(13) to see what might give you the result you want.

The AddNewLine may be putting in the extra space where the DXL thinks it is a new paragraph rather than just a line break.