Why not use <br/> tags to keep things consistent?

Lee



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kenneth
Kawamoto
Sent: 22 June 2006 11:47
To: [email protected]
Subject: Re: [Flashcoders] <br><p> won't render

> I have a htmlText field that won't seem to recognize breaks or  
> paragraph tags, however renders <b>, <i>, etc.
> Any Idea what I could be doing wrong?

If you do:

htmlText = "<p>Line 1</p><p>Line 2</p><p>Line 3</p>";

The TextField will render like this:

Line 1Line 2Line 3

And the actual htmlText would be:

<P ALIGN="LEFT"><FONT FACE="Times New Roman" SIZE="12" COLOR="#000000" 
LETTERSPACING="0" KERNING="0">Line 1Line 2Line 3</FONT></P>

There are no paragraph tags.

But if you do:

htmlText = "<p>Line 1</p>\n<p>Line 2</p>\n<p>Line 3</p>";

The TextField will render like this:

Line 1
Line 2
Line 3

And the actual htmlText would be:

<P ALIGN="LEFT"><FONT FACE="Times New Roman" SIZE="12" COLOR="#000000" 
LETTERSPACING="0" KERNING="0">Line 1</FONT></P><P ALIGN="LEFT"><FONT 
FACE="Times New Roman" SIZE="12" COLOR="#000000" LETTERSPACING="0" 
KERNING="0">Line 2</FONT></P><P ALIGN="LEFT"><FONT FACE="Times New 
Roman" SIZE="12" COLOR="#000000" LETTERSPACING="0" KERNING="0">Line 
3</FONT></P>

I'm not sure why, but this is the way it is. May be someone on the list 
can answer the reason behind this.

Kenneth Kawamoto
http://www.materiaprima.co.uk


_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to