eea / odfpy

API for OpenDocument in Python
GNU General Public License v2.0
311 stars 64 forks source link

please add to grammar.py #91

Open OtharSmirnow opened 5 years ago

OtharSmirnow commented 5 years ago

hi, can you please add in grammar.py: where: (STYLENS,u'master-page') : (

what:

(LOEXTNS,u'footer-first'),
(LOEXTNS,u'header-first'),

this are needed to exclude/have custom first header and footer.

exclude_1st_header = Element(qname = (u"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0",'header-first'))
exclude_1st_footer = Element(qname=(u"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0", 'footer-first'))

thank you.

OtharSmirnow commented 5 years ago

I don't think I am that skilled to contribute more as this files look to be generated. If I could give you any more information, just ask.