-
Notifications
You must be signed in to change notification settings - Fork 1.2k
WIP: Feature Header & Footer #571
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@ondrej-111 first of all: Nice work! I've looked briefly at your code and I've noticed that you chose to create two complex types: one for the header and one for the footer. When I was investigating the parts - complex types for the Bookmarks (PR #445 ) I found that the header and footer share the same comlex type: see Lines 3441 to 3442 in 94623ff
which would mean that: python-docx/docx/oxml/__init__.py Lines 79 to 80 in 99c1e32
should refer to CT_HdrFtr And I think it's required that in order to get a PR merged, It should start with the When this acceptance test is run using However, I would first try and create some working version a regards, Ben edit: Lines 1591 to 1602 in 94623ff
my guess is: Lines 1576 to 1582 in 94623ff
|
@Benjamin-T Thank You for your help. Analysis document already exist here: I think I can close this PR and create new branch like feature/header_footer with right work flow where I will start with acceptance tests and then implement code and unit tests step by step... |
implemented header and footer by spec but without actions in: https://github.com/python-openxml/python-docx/blob/master/docs/dev/analysis/features/header.rst
linked to issue: #104
in progress: implement add/remove_header/footer