When htmlText goes wrong
Mark Schonewille
m.schonewille at economy-x-talk.com
Sat Jan 4 06:46:58 EST 2014
Hi Graham,
What is the source of your HTML? If you create it by script, you might
want to post your script.
Is there really a space between "<" and "font"? That could be an error
in your syntax or a LiveCode bug.
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553
Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other
colour spaces. http://www.color-converter.com
A few more copies of "Programming LiveCode for the Real Beginner" are
available http://qery.us/3fi
Fill out this survey please
http://livecodebeginner.economy-x-talk.com/survey/
On 1/4/2014 12:04, Graham Samuel wrote:
> Thanks to Jacque and others on this list, I'm using htmlText to get cross-platform styled text with a few embedded math symbols such as the Greek letter pi, inequality symbols etc. It's all working pretty well, but in some of my texts I am now seeing some html sequences 'raw' so to speak - these always relate to color changes (I'm using US spellings today). So, in a text, where pi etc are shown correctly and there are some colored headings, I see a line like:
>
> < font color = "#FF0000"> some text
>
> in black, where I ought to have seen "some text" on its own, in red.
>
> The corresponding </font>, while there in the file, doesn't show up on the display.
>
> This looks like a problem of badly formed html, but I can't see how to detect it and I'm not familiar enough with html to know what can upset it, so to speak. Still looking, but if anyone has any suggestions, I'd be grateful.
>
> Graham
More information about the use-livecode
mailing list