Skip to main content
Inspiring
Feb 17, 2011 3:17 PM UTC
Question

are line breaks considered as a paragraph ?

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 is closed to new replies. Start a new post to keep the conversation going.

5 replies

Inspiring
Feb 17, 2011 7:45 PM UTC

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

Translate
galtzurAuthor
Inspiring
Feb 20, 2011 7:34 AM UTC

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 ?

Translate
Vikram_S
Known Participant
Feb 22, 2011 9:56 AM UTC

Hi,

have you tried by putting '\n' ?

Thanks,

Vikram

Translate