On 22 Mar 2023, at 17:34, Udi Finkelstein wrote:
> Yes, install lxml.
> pip install lxml
>
> As the one who contributed most of the code for RichText, I'm the one to
> blame.
> openpyxl is designed to work with either lxml or etree, but once you
> install lxml, it takes precedence.
> Since I had lxml installed when developing this, there were several cases
> where etree support had a few bugs.
I've finally got round to adding relevant tests and fixing this for those without lxml, I hope!
It demonstrates, yet again, how important tests are for this, but also the importance, in an OO application, of being able to implement methods whenever possible on objects themselves. This makes testing and coding a whole lot easier and would have avoided the problems in the first place.
CellRichText is still test poor, but it's getting better.
Charlie
--
Charlie Clark
Managing Director
Clark Consulting & Research
German Office
Sengelsweg 34
Düsseldorf
D- 40489
Tel:
+49-203-3925-0390
Mobile:
+49-178-782-6226