Skip to main content
Participant
November 17, 2009
Question

Import html to textFlow creates paragraphs

  • November 17, 2009
  • 1 reply
  • 487 views

That;s what I do :

            str = "Some example text with <b>bold</b> and <i>italic</i> or <b> even one <i>and another</i></b>.";
            this.textFlow = TextFilter.importToFlow(str,TextFilter.HTML_FORMAT);

And the textflow is (TextFilter.export(this._textFlow,TextFilter.TEXT_LAYOUT_FORMAT, ConversionType.STRING_TYPE);  😞

<TextFlow paddingRight="inherit" paddingTop="inherit" verticalAlign="inherit" lineBreak="inherit" paddingBottom="inherit" paddingLeft="inherit" whiteSpaceCollapse="preserve" xmlns="http://ns.adobe.com/textLayout/2008"><p><span>Some example text with </span></p><p><span fontWeight="bold">bold</span></p><p><span> and </span></p><p><span fontStyle="italic">italic</span></p><p><span> or </span></p><p><span fontWeight="bold"> even one </span></p><p><span fontStyle="italic" fontWeight="bold">and another</span></p><p><span>.</span></p></TextFlow>

I see each part in new line. What's with those <p> .. </p> tags ?

This topic has been closed for replies.

1 reply

Participating Frequently
November 18, 2009

Hi,

This bug was fixed some time in August. Please try a more recent build.

Thanks,

Abhishek

(Adobe Systems Inc.)