I wondered why getText() returns an old style HTML (3.2).
After some investigation I found that HTMLWriter has two convert methods.
One of them (convertToHTML40) makes use of modern CSS and another
(convertToHTML32) drops CSS and replaces it with old HTML.
Which method will be choosed depends on variable 'writeCSS' which is
initialiset to false,
has private access and has no getter/setter.
That makes impossible to save new style HTML and also to switch between
WISIWIG and source editing.
Is it a bug?
Or some one just forgot to add getter/setter methods?

Signature
Andrey Kuznetsov
http://uio.imagero.com Unified I/O for Java
http://reader.imagero.com Java image reader
http://jgui.imagero.com Java GUI components and utilities
On Thu, 10 Nov 2005 21:11:51 +0100, "Andrey Kuznetsov"
<spam0@imagero.com.invalid> wrote, quoted or indirectly quoted someone
who said :
>Is it a bug?
>Or some one just forgot to add getter/setter methods?
You can't roll your own convertToHTML like this because
convertToHTML40 is private. Perhaps they are just getting prepared to
change the definition?
AttributeSet convertToHTML(AttributeSet from, MutableAttributeSet to)
{
if (to == null) {
to = convAttr;
}
to.removeAttributes(to);
convertToHTML40(from, to);
}
return to;
}

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.