Skip to main content
Known Participant
March 10, 2009
Answered

Empty paragrpahs in a textflow cause runtime error when displaying the text

  • March 10, 2009
  • 1 reply
  • 585 views
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
This topic has been closed for replies.
Correct answer rdermer
It's a bug in build 370 that's been fixed.

A workaround till another build gets posted is to also add a SpanElement to the ParagraphElement.

Richard

1 reply

rdermerCorrect answer
Adobe Employee
March 10, 2009
It's a bug in build 370 that's been fixed.

A workaround till another build gets posted is to also add a SpanElement to the ParagraphElement.

Richard
mech-headAuthor
Known Participant
March 10, 2009
Hey Richard,

thank you very much, and I was indeed already using your mentioned workaround, I was just wondering whether it was a bug or something I didn't fully understand :) But now I do, so thanks for your time.