Setting merge field to "" creates newline- any way to not do this?

If I dont have content for something im working with, I usually will just do something like

e.Text = "";

where e is the field that im working with in my handler. When exporting this though, it creates a new line, both in the Word document and HTML versions. Is there a way to get it not to create a new line, but just ‘remove’ the text there? I have a table holding info about a user, and I would like it to look like:
Person Name
Person Name
Person Info
Other Text
Person Name
Other Text
--------------
rather than:
Person Name

Person Name
Person Info
Other Text
Person Name
Other Text

----------
Jon

Hi

Thanks for your inquiry. You can use MailMerge.RemoveEmptyParagrapgs property in this case. Please follow the link to learn more:
https://reference.aspose.com/words/net/aspose.words.mailmerging/mailmergecleanupoptions/
Hope this helps.
Best regards,

Will this only remove extra paragraphs from my merge, or through the document itself? Basically, if I have extra spaces in my template, will those be removed too?

I tried this and it worked perfectly, thank you.