Answered
Empty paragrpahs in a textflow cause runtime error when displaying the text
Hello there,
when I create a textflow which has empty ParagraphElements in it (i.e. a ParagraphElement without any children) I get this runtime error once I try to display the text in a container:
Error: Error #2175: One or more elements of the content of the TextBlock has a null ElementFormat.
Is this a bug, or is there a legitimate reason for this error? If so, I'd like to understand why. In my reasoning an empty ParagraphElement should just result in the rendering of a newline. But maybe I'm thinking too much in HTML terms here...
I appreciate any light you can shed on this,
thanks in advance,
Roland
P.S. I'm using the latest build 370
when I create a textflow which has empty ParagraphElements in it (i.e. a ParagraphElement without any children) I get this runtime error once I try to display the text in a container:
Error: Error #2175: One or more elements of the content of the TextBlock has a null ElementFormat.
Is this a bug, or is there a legitimate reason for this error? If so, I'd like to understand why. In my reasoning an empty ParagraphElement should just result in the rendering of a newline. But maybe I'm thinking too much in HTML terms here...
I appreciate any light you can shed on this,
thanks in advance,
Roland
P.S. I'm using the latest build 370
