Note, in AS3, there's a flag they added to TextField, 'condenseWhite', so we can at least be compatible with DHTML there, but we'd have to do something icky to make swf8 handle it.
2010/1/27 hminsky <[email protected]> > Yeah all the grief is because Flash's TextField's implementation of > rendering HTML text preserves whitespace. > > > > On Wed, Jan 27, 2010 at 12:38 PM, P T Withington > <[email protected]>wrote: > >> I think what we want: >> >> An attribute of text (I would name it simply "html"), which if true makes >> the content be interpreted as HTML (which means that whitespace will be >> collapsed unless you insert the appropriate markup to preserve it), and if >> false the content will be displayed verbatim (i.e., <>& will be escaped and >> whitespace will be preserved). >> >> The devil is in how you achieve this cross-runtime. >> >> On 2010-01-27, at 12:20, Max Carlson wrote: >> >> > Wait, this isn't quite right. It seems the issue is how the browser >> > renders spaces - not whether we're rendering HTML or not... >> > >> > Regards, >> > Max Carlson >> > OpenLaszlo.org >> > >> > On 1/26/10 4:52 PM, Max Carlson wrote: >> >> Change 20100126-maxcarlson-j by maxcarl...@bank on 2010-01-26 16:45:13 >> PST >> >> in /Users/maxcarlson/openlaszlo/trunk-clean >> >> for http://svn.openlaszlo.org/openlaszlo/trunk >> >> >> >> Summary: Add support for HTML display to lztext >> >> >> >> Bugs Fixed: LPP-7558 - DHTML<text> does not preserve whitespace, >> LPP-6617 - Text should be able to be plain or html >> >> >> >> Technical Reviewer: ptw >> >> QA Reviewer: hminsky >> >> >> >> Details: LzSprite - Add htmltext capability, set to true >> >> >> >> LzTextSprite - Implement setHTML(), handle changes to overflow and >> whitespace CSS properties. >> >> >> >> LzInputText - Deprecate setHTML() in favor of displayhtml attribute. >> >> >> >> LzTextSprite - Add setHTML(), deprecate in favor of displayhtml >> attribute. >> >> >> >> Tests: This test shows whitespace in DHTML: >> >> <canvas> >> >> <text id="txt" bgcolor="#ffaaaa" text=" Hello Laszlo! " >> displayhtml="true"/> >> >> </canvas> >> >> >> >> >> >> Files: >> >> M WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js >> >> M WEB-INF/lps/lfc/kernel/dhtml/LzTextSprite.js >> >> M WEB-INF/lps/lfc/views/LzInputText.lzs >> >> M WEB-INF/lps/lfc/views/LzText.lzs >> >> >> >> Changeset: >> http://svn.openlaszlo.org/openlaszlo/patches/20100126-maxcarlson-j.tar >> > _______________________________________________ >> > Laszlo-reviews mailing list >> > [email protected] >> > http://www.openlaszlo.org/mailman/listinfo/laszlo-reviews >> >> > > > -- > Henry Minsky > Software Architect > [email protected] > > > -- Henry Minsky Software Architect [email protected]
_______________________________________________ Laszlo-reviews mailing list [email protected] http://www.openlaszlo.org/mailman/listinfo/laszlo-reviews
