ezodf icon indicating copy to clipboard operation
ezodf copied to clipboard

newdoc without doctype

Open buhtz opened this issue 7 years ago • 0 comments

See this from your docu

# create a new text document
doc = ezodf.newdoc(doctype='odt', filename='text.odt')
# or open an existing text document
doc = ezodf.opendoc('text.odt')

opendoc doesn't need a doctype because it recoginize it from the filename or the filecontent. newdoc shouldn't need doctype, too. Because it can recoginize the needed type from the filename suffix.

doctype should be optional (per default None)

buhtz avatar Aug 17 '17 10:08 buhtz