Free Support Forum - aspose.com

Text with line feed characters

If I have text with linefeed characters in it, and add to text area, it double spaces instead of single spaces, even though the paragraph format is set to single. Any idea how I can get it to single space.

Check if the text has single linefeed characters “\r” or “\n” but not both together “\r\n”.
Also check Paragraph.SpaceBefore and Paragraph.SpaceAfter properties.