Skip to content
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

Add support for whole-document FootnoteProperties #1704

Closed
wants to merge 1 commit into from

Conversation

mdupont
Copy link
Contributor

@mdupont mdupont commented Aug 27, 2019

Also improves support of these properties for Endnotes.

Description

It is now possible to set FootnoteProperties for Endnotes at the section level. Previously it only worked for footnotes.

However, since positioning endnotes (for example at the end of the section instead of the end of the document) only works at the document level, I added a way to set default properties for footnotes and endnotes.

Some further work was needed to have both document-level and section-level properties working correctly, as in redeclaring the document-level properties at the section level if need be (this is what Word itself is doing BTW), and omitting to output default properties if the document doesn't have any footnote or endnote.

Fixes #1703

Checklist:

  • I have run composer run-script check --timeout=0 and no errors were reported
  • The new code is covered by unit tests (check build/coverage for coverage report)
  • I have updated the documentation to describe the changes

@mdupont mdupont force-pushed the improv-endnotes branch 7 times, most recently from c81734e to 6c6a940 Compare August 28, 2019 10:39
@mdupont
Copy link
Contributor Author

mdupont commented Aug 28, 2019

Travis mostly good, only fails because of #1706 and because of recent code in the develop branch that was already triggering phpmd warnings.

@mdupont
Copy link
Contributor Author

mdupont commented Sep 2, 2019

Rebased on top of the develop branch

@coveralls
Copy link

coveralls commented Sep 2, 2019

Coverage Status

Coverage increased (+0.006%) to 94.639% when pulling e953c8a on mdupont:improv-endnotes into dfea4e1 on PHPOffice:develop.

@mdupont
Copy link
Contributor Author

mdupont commented Sep 2, 2019

@troosan All green now after rebasing on top of the latest commits from develop :-)

@mdupont
Copy link
Contributor Author

mdupont commented Nov 27, 2019

Rebased against 0.17.0

Also improves support of these properties for Endnotes.
@mdupont
Copy link
Contributor Author

mdupont commented Dec 9, 2019

Closing since I think it tries to do too many things at once. I will split it in multiple pull requests which improve on 1 thing at a time

@mdupont mdupont closed this Dec 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Endnote support is lacking (Word writer)
2 participants