Skip to main content
Inspiring
February 17, 2011
Question

are line breaks considered as a paragraph ?

  • February 17, 2011
  • 1 reply
  • 1049 views

Hi

I am imorting a HTML text into a TextFlow using TextConverter.importToFlow

The format I am using is TextConverter.TEXT_FIELD_HTML_FORMAT

I am setting the formatso the space after a paragrph as follows:

paragraphSpaceAfter = 30

My question is why are line breaks tag <br> give me the same space between lines as a paragraph?

can I control the height of the line breaks ?

This topic has been closed for replies.

1 reply

Adobe Employee
February 17, 2011

It's done that way because TextField.htmlText treats a <br> as a new paragraph.  The goal is compatibility with TextField's htmlText parser.  I don't see any easy way to control that line spacing.

That's not great news for you.  Sorry about that,

Richard

galtzurAuthor
Inspiring
February 20, 2011

So there is no way to create a line break via html import ?

If I want to have a line break I need to create the importer that create the layout ?

Vikram_S
Known Participant
February 22, 2011

Hi,

have you tried by putting '\n' ?

Thanks,

Vikram