When htmlText goes wrong
m.schonewille at economy-x-talk.com
Sat Jan 4 06:46:58 EST 2014
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.
Economy-x-Talk Consulting and Software Engineering
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
Fill out this survey please
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.
More information about the Use-livecode