T0ha / ezodf

ezodf is a Python package to create new or open existing OpenDocument (ODF) files to extract, add, modify or delete document data, forked from dead project https://bitbucket.org/mozman/ezodf
Other
61 stars 23 forks source link

How to use nested list? #15

Open OOXX1248 opened 8 years ago

OOXX1248 commented 8 years ago

Hello,I have a trouble to make a nested list. The code is : temp = ezodf.newdoc("odt","") a = ezodf.List() b = ezodf.List() a.append(ezodf.ListItem('1')) b.append(ezodf.ListItem('2')) a += b temp.saveas("temp.odt")

And i load the file(temp.odt) with Openoffice4.1.2 , (python3.4 ,win10 64bit environment) Openoffice only shows the "a" list in the document, i feel frustrated about the situation. Did i misunderstand something about the module or the function? Please let me know.

At the end, thanks for the efforts what you devoted.It saves my time.