Page 2 of 2

Re: Using expressions with "<" and ">"

Posted: Sun Apr 30, 2023 9:04 pm
by bn
FourthWorld wrote: Sun Apr 30, 2023 8:30 pm IIRC the original rule for LC to treat Ask and Answer prompts as htmlText was to require what all htmlText has: "<p>" at the beginning and "</p>" at the end.
Resuming that rule would allow other uses.
If the rule has not formally changed perhaps this is a bug.
This is how the answer dialog decides:

Code: Select all

if "<p>" is in tText or matchChunk(tText, "<(.+>.+</.+)>") then set the htmlText of field 1 of me to tText
else set the text of field 1 of me to tText
Kind regards
Bernd

Re: Using expressions with "<" and ">"

Posted: Sun Apr 30, 2023 11:14 pm
by FourthWorld
Thanks, Bernd. Seems too inclusive for my tastes, but if that's the rule it's probably too late to change it now.

Re: Using expressions with "<" and ">"

Posted: Mon May 01, 2023 1:15 am
by mwieder
Well, I can verify that code hasn't changed since at least as far back as v 7.0.4.
I'm guessing it's just always been that way.