As far as I can tell, merged cells do not automatically resize for
wrapped text, even in the genuine Microsoft Excel application.
Therefore, it's not a bug in xlwt.
What I do when I need to use multiple wrapped lines of text in a
single merged cell is to adjust the row height myself in xlwt (which
comes with its own set of gotchas).
John Y.
It would be interesting to add that to xlwt if you could find the
relevant bits of pyXLWriter and work up a patch to add the same to xlwt...
cheers,
Chris
--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
Hi John,
But adjusting row heigh doesn't seem to have any effect. It seems the
row.height variable doesn't work at all.
I know microsoft excel
doesn't adjust row height automatically
but when I tried this using
pyXLWriter, it worked fine. pyXLWriter nicely wraps merged cells to
show the entire content.