Answer Annoyance

Ken Ray kray at
Thu Aug 30 04:29:25 EDT 2007

On Thu, 30 Aug 2007 00:19:24 -0700, Richard Gaskin wrote:

> Scott Rossi wrote:
>> ...IIRC this behavior is somewhat new for Rev -- used to be that
>> "answer" displayed the raw (unformatted) text of whatever you fed 
>> it.  

Well, sorry to break your bubble, but HTML formatting in the Answer 
Dialog goes way back to 2.1.2 (at least)**.

>> Seems like there should be some kind of "show formatted" toggle 
>> or something built on the HTMLtext property.

> This may be a bug.  IIRC, the flag is the presence of "<p>" at the 
> beginning and "</p>" at the end of the text.  If either of those is 
> absent the text is rendered as plain text, otherwise it's assumed to 
> e htmlText.
> The MetaCard group looked into this in detail a couple years ago, and 
> have adopted that convention from Rev.

Actually, IIRC, we looked at what Rev was doing** and realizing that 
was a bad idea, decided to check ONLY for text beginning with "<p>" to 
indicate a desire for HTML formatting.

Ken Ray
Sons of Thunder Software, Inc.
Email: kray at
Web Site:
** Rev (since 2.6.1) looks for "<p>" *in* the text, or is looking to 
match anything in open/close/self-enclosing tags. Oddly enough, Rev 
2.1.2 looks for text *beginning* with a "<p>" OR any text that is in 
open/close/self-enclosing tags. Both ways are problematic...

More information about the use-livecode mailing list