This question is locked. New answers and comments are not allowed.
Hi,
I'm using a RadDocument to export some text to pdf. I am dynamically building sections and paragraphs, and have noticed odd behavior with newlines. I've created a simple sample to demonstrate.
Section section = new Section();Paragraph paragraph = new Paragraph();paragraph.Inlines.Add(new Span() { Text = "Line 1" });paragraph.Inlines.Add(new Span() { Text = "\rLine 2\r\r" });paragraph.Inlines.Add(new Span() { Text = "Line 3" });paragraph.Inlines.Add(new Span() { Text = "\rLine 4" });section.Blocks.Add(paragraph);document.Sections.Add(section);This code should produce:
Line 1
Line 2
Line 3
Line 4
However, when exported to pdf, there is not linebreak between "Line 3" and "Line 4". Instead it puts them on the same line, and puts 2 squares between them like this:
Line 1
Line 2
Line3 ô€€€ô€€€Line 4
Please let me know if there is a work around.
Thanks,
Justin