[svn:fx-trunk] 7480: When you set the 'text' property of RichText to a String that has line-ending sequences such as LF or CR+LF , a TextFlow with multiple paragraph is now produced as the 'content'.


revision: 7480

author:   gosmith@adobe.com

date:     2009-06-01 23:15:39 -0700 (mon, 01 jun 2009)

 

log message:

***********

when set 'text' property of richtext string has line-ending sequences such lf or cr+lf, textflow multiple paragraph produced 'content'. splitting done using tlf's importer plain_text_format if 'text' found contain \r or \n.

 

previously, of multi-line text got stuffed 1 span in 1 paragraph. when have large paragraph (i.e., large textblock), fte slow break first textline because analyzes of text first. , if text has lots of cr+lf line endings, current player horribly slow because of excessive mem-copying 2 characters replaced 1 glyph.

 

furthermore, peter found, there precedent doing this: when set 'text' of textfield , 'htmltext', splits text paragraphs.

 

with change, can display large line-oriented file 12000-line source uicomponent (on windows, uses cr+lf) in few seconds instead of many minutes.

 

qe notes: none

doc notes: none

bugs: none

reviewer: carol

 

modified paths:

**************

    flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/richtext.as



More discussions in Commits


adobe

Comments

Popular posts from this blog

Error compiling for board Arduino/Genuino Uno.

Installation database is corrupt

esp8266 (nodemcu 0.9) client.write très lent ???