xlnt icon indicating copy to clipboard operation
xlnt copied to clipboard

Will lose font format and file will be damaged

Open liufeijin opened this issue 3 years ago • 3 comments

if cell is format like as QQ截图20210606010546 write some in to file the cell will be changed as QQ截图20210606010516 and the excel file will be damaged to be repaired. attached is a test.xlsx please have try write something in it can seed the result test.xlsx

liufeijin avatar Jun 06 '21 02:06 liufeijin

i compared the orignal excel and modified excel file found. it messed a row <vertAlign val="superscript"/> in xl/sharedStrings.xml but i don't konw how to fix it ? QQ截图20210606120820

liufeijin avatar Jun 06 '21 04:06 liufeijin

I search your code , seem lose "vertAlign "(subscript superscript) in function rich_text xlsx_consumer::read_rich_text(const xml::qname &parent) in file xlsx_consumer.cpp (xlsx_producer.cpp) but i don't know how to fix it . QQ截图20210606211349

liufeijin avatar Jun 06 '21 13:06 liufeijin

does anyone know how to fix it?

liufeijin avatar Nov 14 '21 00:11 liufeijin